change setPAL to setFlags

This commit is contained in:
tildearrow 2022-01-28 12:59:53 -05:00
parent 8c353548f5
commit bfed0b3209
35 changed files with 85 additions and 83 deletions

View file

@ -254,15 +254,15 @@ void DivPlatformTIA::notifyInsDeletion(void* ins) {
}
}
void DivPlatformTIA::setPAL(bool pal) {
if (pal) {
void DivPlatformTIA::setFlags(unsigned int flags) {
if (flags) {
rate=31250;
} else {
rate=31400;
}
}
int DivPlatformTIA::init(DivEngine* p, int channels, int sugRate, bool pal) {
int DivPlatformTIA::init(DivEngine* p, int channels, int sugRate, unsigned int flags) {
parent=p;
dumpWrites=false;
skipRegisterWrites=false;
@ -270,7 +270,7 @@ int DivPlatformTIA::init(DivEngine* p, int channels, int sugRate, bool pal) {
isMuted[i]=false;
}
tia.channels(1,false);
setPAL(pal);
setFlags(flags);
reset();
return 2;
}