File tree 1 file changed +2
-6
lines changed
Core/NES/Mappers/Nintendo
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 10
10
class MMC3 : public BaseMapper
11
11
{
12
12
private:
13
- NesCpu* _cpu = nullptr ;
14
-
15
13
uint8_t _currentRegister = 0 ;
16
14
17
15
bool _wramEnabled = false ;
@@ -195,8 +193,6 @@ class MMC3 : public BaseMapper
195
193
196
194
void InitMapper () override
197
195
{
198
- _cpu = _console->GetCpu ();
199
-
200
196
// Force MMC3A irqs for boards that are known to use the A revision.
201
197
// Some MMC3B boards also have the A behavior, but currently no way to tell them apart.
202
198
_forceMmc3RevAIrqs = _romInfo.DatabaseInfo .Chip .substr (0 , 5 ).compare (" MMC3A" ) == 0 ;
@@ -245,7 +241,7 @@ class MMC3 : public BaseMapper
245
241
246
242
case 0xE000 :
247
243
_irqEnabled = false ;
248
- _cpu ->ClearIrqSource (IRQSource::External);
244
+ _console-> GetCpu () ->ClearIrqSource (IRQSource::External);
249
245
break ;
250
246
251
247
case 0xE001 :
@@ -256,7 +252,7 @@ class MMC3 : public BaseMapper
256
252
257
253
virtual void TriggerIrq ()
258
254
{
259
- _cpu ->SetIrqSource (IRQSource::External);
255
+ _console-> GetCpu () ->SetIrqSource (IRQSource::External);
260
256
}
261
257
262
258
vector<MapperStateEntry> GetMapperStateEntries () override
You can’t perform that action at this time.
0 commit comments