prepare for 5E01

This commit is contained in:
tildearrow 2024-03-18 14:22:05 -05:00
parent cb2aeb649f
commit 3423ac8774
8 changed files with 46 additions and 5 deletions

View file

@ -310,6 +310,7 @@ void DivDispatchContainer::init(DivSystem sys, DivEngine* eng, int chanCount, do
} else {
((DivPlatformNES*)dispatch)->setNSFPlay(eng->getConfInt("nesCore",0)==1);
}
((DivPlatformNES*)dispatch)->set5E01(false);
break;
case DIV_SYSTEM_C64_6581:
dispatch=new DivPlatformC64;
@ -673,6 +674,15 @@ void DivDispatchContainer::init(DivSystem sys, DivEngine* eng, int chanCount, do
case DIV_SYSTEM_NDS:
dispatch=new DivPlatformNDS;
break;
case DIV_SYSTEM_5E01:
dispatch=new DivPlatformNES;
if (isRender) {
((DivPlatformNES*)dispatch)->setNSFPlay(eng->getConfInt("nesCoreRender",0)==1);
} else {
((DivPlatformNES*)dispatch)->setNSFPlay(eng->getConfInt("nesCore",0)==1);
}
((DivPlatformNES*)dispatch)->set5E01(true);
break;
case DIV_SYSTEM_DUMMY:
dispatch=new DivPlatformDummy;
break;