コード例 #1
0
        public virtual int sceRtcSetDosTime(TPointer dateAddr, int time)
        {
            ScePspDateTime dateTime = ScePspDateTime.fromMSDOSTime(time);

            dateTime.write(dateAddr);

            return(0);
        }
コード例 #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public void read(pspsharp.state.StateInputStream stream) throws java.io.IOException
        public virtual void read(StateInputStream stream)
        {
            stream.readVersion(STATE_VERSION);
            deviceName = stream.readString();
            dirName    = stream.readString();
            fileName   = stream.readString();
            fileName83 = stream.readString();
            directory  = stream.readBoolean();
            readOnly   = stream.readBoolean();
            int time = stream.readInt();

            if (time == 0)
            {
                lastModified = null;
            }
            else
            {
                lastModified = ScePspDateTime.fromMSDOSTime(time);
            }
            fileSize = stream.readLong();
            clusters = stream.readIntsWithLength();
            fileData = stream.readBytesWithLength();
            closeVirtualFile();
        }