Mercurial > repos > blastem
comparison genesis.c @ 2090:00b6592cad42
Fix typo that messed up Mode 1 for carts with mappers
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 06 Feb 2022 22:21:02 -0800 |
parents | c716af3f8980 |
children | 9caebcfeac72 |
comparison
equal
deleted
inserted
replaced
2089:0db3af42dd72 | 2090:00b6592cad42 |
---|---|
2149 { | 2149 { |
2150 if (map[i].flags & MMAP_PTR_IDX && map[i].ptr_index > max_ptr_index) { | 2150 if (map[i].flags & MMAP_PTR_IDX && map[i].ptr_index > max_ptr_index) { |
2151 max_ptr_index = map[i].ptr_index; | 2151 max_ptr_index = map[i].ptr_index; |
2152 } | 2152 } |
2153 } | 2153 } |
2154 cd->memptr_start_index + max_ptr_index + 1; | 2154 cd->memptr_start_index = max_ptr_index + 1; |
2155 for (int i = info.map_chunks - 1; i < map_chunks - 1; i++) | 2155 for (int i = info.map_chunks - 1; i < map_chunks - 1; i++) |
2156 { | 2156 { |
2157 if (map[i].flags & MMAP_PTR_IDX) { | 2157 if (map[i].flags & MMAP_PTR_IDX) { |
2158 map[i].ptr_index += cd->memptr_start_index; | 2158 map[i].ptr_index += cd->memptr_start_index; |
2159 } | 2159 } |