diff options
author | aliaspider | 2014-10-29 10:24:58 +0100 |
---|---|---|
committer | aliaspider | 2014-10-29 10:24:58 +0100 |
commit | 616ea0c4c68ac5ee90c1fc835d047bdbd3da62a3 (patch) | |
tree | 43e01e05b314ceae116625a13b72dc0c9fe9f1f1 /source/snapshot.c | |
parent | 4fb67d24cdde1e085d09a699ed2f5d68c306f534 (diff) | |
download | snes9x2005-616ea0c4c68ac5ee90c1fc835d047bdbd3da62a3.tar.gz snes9x2005-616ea0c4c68ac5ee90c1fc835d047bdbd3da62a3.tar.bz2 snes9x2005-616ea0c4c68ac5ee90c1fc835d047bdbd3da62a3.zip |
cleanups.
Diffstat (limited to 'source/snapshot.c')
-rw-r--r-- | source/snapshot.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/snapshot.c b/source/snapshot.c index df64a1c..88b2ec7 100644 --- a/source/snapshot.c +++ b/source/snapshot.c @@ -660,7 +660,7 @@ void S9xFreezeToStream (STREAM stream) // RAM and VRAM FreezeBlock (stream, "VRA", Memory.VRAM, 0x10000); FreezeBlock (stream, "RAM", Memory.RAM, 0x20000); - FreezeBlock (stream, "SRA", SRAM_g, 0x20000); + FreezeBlock (stream, "SRA", Memory.SRAM, 0x20000); FreezeBlock (stream, "FIL", Memory.FillRAM, 0x8000); if (Settings.APUEnabled) { @@ -803,7 +803,7 @@ int S9xUnfreezeFromStream (STREAM stream) UnfreezeStructFromCopy (DMA, SnapDMA, COUNT (SnapDMA), local_dma); memcpy (Memory.VRAM, local_vram, 0x10000); memcpy (Memory.RAM, local_ram, 0x20000); - memcpy (SRAM_g, local_sram, 0x20000); + memcpy (Memory.SRAM, local_sram, 0x20000); memcpy (Memory.FillRAM, local_fillram, 0x8000); if(local_apu) { @@ -1585,7 +1585,7 @@ bool8 S9xUnfreezeZSNES (const char *filename) if (Settings.SuperFX) { - fread (SRAM_g, 1, 64 * 1024, fs); + fread (Memory.SRAM, 1, 64 * 1024, fs); fseek (fs, 64 * 1024, SEEK_CUR); fread (Memory.FillRAM + 0x7000, 1, 692, fs); } @@ -1617,7 +1617,7 @@ bool8 S9xUnfreezeZSNES (const char *filename) // DS2 DMA notes: This code path is not used [Neb] memcpy (&Memory.FillRAM [0x3000], t + 692, 2 * 1024); - fread (SRAM_g, 1, 64 * 1024, fs); + fread (Memory.SRAM, 1, 64 * 1024, fs); fseek (fs, 64 * 1024, SEEK_CUR); S9xFixSA1AfterSnapshotLoad (); } |