Skip to content

Commit

Permalink
Fixed bug in Memory::operator << (SerReader &worker)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Nov 17, 2024
1 parent fc435b9 commit f817b85
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Emulator/Components/Memory/Memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,10 +385,13 @@ Memory::operator << (SerReader &worker)
if (slowSize > KB(1792)) throw Error(VAERROR_SNAP_CORRUPTED);
if (fastSize > MB(8)) throw Error(VAERROR_SNAP_CORRUPTED);

// Allocate ROM space (only if Roms are included in the snapshot)
if (romSize) allocRom(romSize, false);
if (womSize) allocWom(womSize, false);
if (extSize) allocExt(extSize, false);
// Allocate ROM space
if (config.saveRoms) {

allocRom(romSize, false);
allocWom(womSize, false);
allocExt(extSize, false);
}

// Allocate RAM space
allocChip(chipSize, false);
Expand Down

0 comments on commit f817b85

Please sign in to comment.