public static void captureRAM(int address, int Length) { if (!captureInProgress) { VideoEngine.log_Renamed.warn("Ignoring captureRAM, capture hasn't been started"); return; } if (!Memory.isAddressGood(address)) { return; } try { // write ram fragment CaptureHeader header = new CaptureHeader(CaptureHeader.PACKET_TYPE_RAM); header.write(@out); CaptureRAM captureRAM = new CaptureRAM(address, Length); captureRAM.write(@out); } catch (Exception e) { VideoEngine.log_Renamed.error("Failed to capture RAM: " + e.Message); Console.WriteLine(e.ToString()); Console.Write(e.StackTrace); } }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void write(java.io.OutputStream out) throws java.io.IOException public virtual void write(System.IO.Stream @out) { DataOutputStream data = new DataOutputStream(@out); data.writeInt(packetSize); data.writeInt(list.list_addr); data.writeInt(list.StallAddr); data.writeInt(list.cbid); //VideoEngine.Console.WriteLine("CaptureList write " + (5 * 4)); CaptureHeader header = new CaptureHeader(CaptureHeader.PACKET_TYPE_RAM); header.write(@out); listBuffer.write(@out); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public void write(java.io.OutputStream out) throws java.io.IOException public virtual void write(System.IO.Stream @out) { DataOutputStream data = new DataOutputStream(@out); data.writeInt(packetSize); data.writeInt(fbp); data.writeInt(fbw); data.writeInt(zbp); data.writeInt(zbw); data.writeInt(psm); data.writeInt(topaddrFb); data.writeInt(bufferwidthFb); data.writeInt(pixelformatFb); data.writeInt(sync); //VideoEngine.Console.WriteLine("CaptureDisplayDetails write " + (4 + packetSize)); if (captureRenderTargets) { // write draw buffer CaptureHeader header = new CaptureHeader(CaptureHeader.PACKET_TYPE_RAM); header.write(@out); drawBuffer.write(@out); // write depth buffer header = new CaptureHeader(CaptureHeader.PACKET_TYPE_RAM); header.write(@out); depthBuffer.write(@out); // write display buffer header = new CaptureHeader(CaptureHeader.PACKET_TYPE_RAM); header.write(@out); displayBuffer.write(@out); } }