Esempio n. 1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public override void write(StateOutputStream stream)
        {
            stream.writeVersion(STATE_VERSION);
            stream.writeInt(unknown000);
            stream.writeInt(unknown004);
            stream.writeInt(unknown008);
            stream.writeInt(unknown00C);
            stream.writeInt(unknown074);
            stream.writeInt(unknown088);
            stream.writeInt(unknown08C);
            stream.writeInt(unknown094);
            stream.writeInt(unknown09C);
            stream.writeInt(unknown0A0);
            stream.writeInt(unknown0A4);
            stream.writeInt(unknown0AC);
            stream.writeInt(unknown0B4);
            stream.writeInt(unknown0B8);
            stream.writeInt(unknown0BC);
            stream.writeInt(unknown0C4);
            stream.writeInt(unknown0E4);
            stream.writeInt(unknown0E8);
            stream.writeInt(unknown0F4);
            stream.writeInt(unknown0FC);
            stream.writeInt(unknown100);
            stream.writeInt(unknown118);
            stream.writeInt(unknown12C);
            stream.writeInt(unknown130);
            stream.writeInt(unknown144);
            stream.writeInt(unknown148);
            stream.writeInt(unknown174);
            stream.writeInt(unknown178);
            stream.writeInt(unknown18C);
            stream.writeInt(unknown190);
            base.write(stream);
        }
Esempio n. 2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public override void write(StateOutputStream stream)
        {
            stream.writeVersion(STATE_VERSION);
            stream.writeFloats(fpr);
            fcr31.write(stream);
            base.write(stream);
        }
Esempio n. 3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public override void write(StateOutputStream stream)
        {
            stream.writeVersion(STATE_VERSION);
            stream.writeInt(busy);
            stream.writeInt(interrupt);
            stream.writeInt(inProgress);
            stream.writeInt(flags10);
            stream.writeInt(flags20);
            stream.writeInt(flags24);
            stream.writeInt(flags2C);
            stream.writeInt(volume);
            stream.writeInt(frequency0);
            stream.writeInt(frequency1);
            stream.writeInt(frequencyFlags);
            stream.writeInt(hardwareFrequency);
            stream.writeInts(audioData0);
            stream.writeInts(audioData1);
            stream.writeInt(audioDataIndex0);
            stream.writeInt(audioDataIndex1);
            for (int i = 0; i < audioLines.Length; i++)
            {
                audioLines[i].write(stream);
            }
            base.write(stream);
        }
Esempio n. 4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
            public virtual void write(StateOutputStream stream)
            {
                stream.writeVersion(STATE_VERSION);
                stream.writeInt(rm);
                stream.writeBoolean(c);
                stream.writeBoolean(fs);
            }
Esempio n. 5
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public override void write(StateOutputStream stream)
        {
            stream.writeVersion(STATE_VERSION);
            stream.writeBooleans(interruptTriggered);
            stream.writeBooleans(interruptEnabled);
            stream.writeBooleans(interruptOccurred);
            base.write(stream);
        }
Esempio n. 6
0
        /*
         * synchronized method as it is reading pendingInterruptIPbits which can be updated from different threads
         */
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public static synchronized void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public static void write(StateOutputStream stream)
        {
            lock (typeof(RuntimeContextLLE))
            {
                stream.writeVersion(STATE_VERSION);
                stream.writeInt(pendingInterruptIPbits);
            }
        }
Esempio n. 7
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public override void write(StateOutputStream stream)
        {
            stream.writeVersion(STATE_VERSION);
            stream.writeInt(cmd);
            stream.writeInt(unknown);
            stream.writeInts(parameters);
            stream.writeInt(result);
            base.write(stream);
        }
Esempio n. 8
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public override void write(StateOutputStream stream)
        {
            stream.writeVersion(STATE_VERSION);
            stream.writeInts(data);
            stream.writeInt(dataIndex);
            stream.writeBoolean(endDataIndex);
            stream.writeInt(error);
            base.write(stream);
        }
Esempio n. 9
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public override void write(StateOutputStream stream)
        {
            stream.writeVersion(STATE_VERSION);
            stream.writeInt(ports);
            stream.writeInt(isOutput);
            stream.writeInt(isInputOn);
            stream.writeInt(isInterruptEnabled);
            stream.writeInt(isInterruptTriggered);
            stream.writeInt(isEdgeDetection);
            stream.writeInt(isRisingEdge);
            stream.writeInt(isFallingEdge);
            stream.writeInt(isCapturePort);
            stream.writeInt(isTimerCaptureEnabled);
            base.write(stream);
        }
Esempio n. 10
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public override void write(StateOutputStream stream)
        {
            stream.writeVersion(STATE_VERSION);
            // The handlers are kept sorted based on their base address
            foreach (int?baseAddress in sortedHandlers.Keys)
            {
                IMMIOHandler handler = sortedHandlers[baseAddress];
                //if (log.DebugEnabled)
                {
                    Console.WriteLine(string.Format("Writing State for {0} at 0x{1:X8}", handler, baseAddress));
                }
                handler.write(stream);
            }
            CY27040.Instance.write(stream);
            WM8750.Instance.write(stream);
        }
Esempio n. 11
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void write(pspsharp.state.StateOutputStream stream, FatVirtualFile fatVirtualFile) throws java.io.IOException
        public virtual void write(StateOutputStream stream, FatVirtualFile fatVirtualFile)
        {
            fatVirtualFile.writeFatFileInfo(stream, parentDirectory);

            // Write the children
            if (children == null)
            {
                stream.writeInt(0);
            }
            else
            {
                stream.writeInt(children.Count);
                foreach (FatFileInfo child in children)
                {
                    fatVirtualFile.writeFatFileInfo(stream, child);
                }
            }
        }
Esempio n. 12
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public override void write(StateOutputStream stream)
        {
            stream.writeVersion(STATE_VERSION);
            stream.writeBytesWithLength(dumpIoIoctl_0x02125803);
            stream.writeLong(position);

            if (vFile != null)
            {
                stream.writeBoolean(true);
                vFile.write(stream);
            }
            else
            {
                stream.writeBoolean(false);
            }

            base.write(stream);
        }
Esempio n. 13
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public virtual void write(StateOutputStream stream)
        {
            stream.writeVersion(STATE_VERSION);
            stream.writeString(deviceName);
            stream.writeString(dirName);
            stream.writeString(fileName);
            stream.writeString(fileName83);
            stream.writeBoolean(directory);
            stream.writeBoolean(readOnly);
            if (lastModified == null)
            {
                stream.writeInt(0);
            }
            else
            {
                stream.writeInt(lastModified.toMSDOSTime());
            }
            stream.writeLong(fileSize);
            stream.writeIntsWithLength(clusters);
            stream.writeBytesWithLength(fileData);
        }
Esempio n. 14
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public override void write(StateOutputStream stream)
        {
            stream.writeVersion(STATE_VERSION);
            stream.writeInt(resetDevices);
            stream.writeInt(busClockDevices);
            stream.writeInt(clock1Devices);
            stream.writeInt(clockDevices);
            stream.writeInt(ioDevices);
            stream.writeInt(ramSize);
            stream.writeInt(tachyonVersion);
            stream.writeInt(usbAndMemoryStick);
            stream.writeInt(avcPower);
            stream.writeInt(interrupts);
            stream.writeInt(pllFrequency);
            stream.writeInt(spiClkSelect);
            stream.writeInt(gpioEnable);
            stream.writeInt(ataClkSelect);
            stream.writeInt(unknown00);
            stream.writeInt(unknown3C);
            stream.writeInt(unknown60);
            stream.writeInt(unknown6C);
            stream.writeInt(unknown74);
            base.write(stream);
        }
Esempio n. 15
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public virtual void write(StateOutputStream stream)
        {
            stream.writeVersion(STATE_VERSION);
            stream.writeInts(registers);
        }
Esempio n. 16
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: @Override protected void write(pspsharp.state.StateOutputStream stream, int address, int Length) throws java.io.IOException
        protected internal override void write(StateOutputStream stream, int address, int Length)
        {
            stream.writeInts(all, address >> 2, Length >> 2);
        }
Esempio n. 17
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void write(pspsharp.state.StateOutputStream stream) throws java.io.IOException
        public virtual void write(StateOutputStream stream)
        {
            stream.writeVersion(STATE_VERSION);
            stream.writeString(name);
            stream.writeBoolean(started);
        }