Example #1
0
        private void LoadZSTFile(byte[] buffer)
        {
            int fileStart = 0xA3E8;

            byte[] subbuffer = new byte[0x500];
            for (int i = 0; i < subbuffer.Length; i++)
            {
                subbuffer[i] = buffer[i + fileStart];
            }

            SAVE = new SaveBlock();
            SAVE.LoadBlock(subbuffer);
        }
Example #2
0
        private void LoadSRMFile(byte[] buffer, int fileSlot)
        {
            int fileStart = (fileSlot * 0xA00);

            byte[] subbuffer = new byte[0x500];
            for (int i = 0; i < subbuffer.Length; i++)
            {
                subbuffer[i] = buffer[i + fileStart];
            }

            SAVE = new SaveBlock();
            SAVE.LoadBlock(subbuffer);
        }