chip flags rewrite, part 4 - DO NOT USE
the next part is to drop systemFlagsOld completely and then to fix the GUI
This commit is contained in:
parent
ee6e0aa0e0
commit
48db9a1d0c
109 changed files with 532 additions and 377 deletions
|
|
@ -447,14 +447,11 @@ void DivPlatformYMZ280B::setChipModel(int type) {
|
|||
chipType=type;
|
||||
}
|
||||
|
||||
void DivPlatformYMZ280B::setFlags(unsigned int flags) {
|
||||
void DivPlatformYMZ280B::setFlags(const DivConfig& flags) {
|
||||
switch (chipType) {
|
||||
default:
|
||||
case 280:
|
||||
switch (flags&0xff) {
|
||||
case 0x00:
|
||||
chipClock=16934400;
|
||||
break;
|
||||
switch (flags.getInt("clockSel",0)) {
|
||||
case 0x01:
|
||||
chipClock=COLOR_NTSC*4.0;
|
||||
break;
|
||||
|
|
@ -470,6 +467,9 @@ void DivPlatformYMZ280B::setFlags(unsigned int flags) {
|
|||
case 0x05:
|
||||
chipClock=14000000;
|
||||
break;
|
||||
default:
|
||||
chipClock=16934400;
|
||||
break;
|
||||
}
|
||||
rate=chipClock/384;
|
||||
break;
|
||||
|
|
@ -483,7 +483,7 @@ void DivPlatformYMZ280B::setFlags(unsigned int flags) {
|
|||
}
|
||||
}
|
||||
|
||||
int DivPlatformYMZ280B::init(DivEngine* p, int channels, int sugRate, unsigned int flags) {
|
||||
int DivPlatformYMZ280B::init(DivEngine* p, int channels, int sugRate, const DivConfig& flags) {
|
||||
parent=p;
|
||||
dumpWrites=false;
|
||||
skipRegisterWrites=false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue