diff options
| author | Peter Fors <peter.fors@mindkiller.com> | 2025-11-02 09:16:03 +0100 |
|---|---|---|
| committer | Peter Fors <peter.fors@mindkiller.com> | 2025-11-02 09:16:03 +0100 |
| commit | ed41715142f419021ed8fef5522ea1f363f16441 (patch) | |
| tree | 9cf0049db6ac5b0da5552bba9e0376b82eaeb2b4 /mappers/mapper_007_2.c | |
| parent | e137c881d835703d1030746cd7262899de7169c6 (diff) | |
fix multiple mappers
Diffstat (limited to 'mappers/mapper_007_2.c')
| -rw-r--r-- | mappers/mapper_007_2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mappers/mapper_007_2.c b/mappers/mapper_007_2.c index 9f5a3dc..3987956 100644 --- a/mappers/mapper_007_2.c +++ b/mappers/mapper_007_2.c @@ -42,7 +42,7 @@ static void mapper_007_2_ciram_write(struct nes_state *state, uint32_t addr, uin static void mapper_007_2_init(struct nes_state *state) { struct mapper_007_2 *mapper = &state->mapper_data.m007_2; mapper->prg_rom = state->prg_rom; - mapper->ciram = 0; + mapper->ciram = state->ciram; // << THIS WAS THE BUG, set ciram = 0, zero understanding to how this worked for 6+ months. state->mapper_function.prg_rom_read = mapper_007_2_prg_rom_read; state->mapper_function.prg_rom_write = mapper_007_2_prg_rom_write; |
