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
|
|
@ -849,13 +849,8 @@ void DivPlatformArcade::reset() {
|
|||
//rWrite(0x1b,0x00);
|
||||
}
|
||||
|
||||
void DivPlatformArcade::setFlags(unsigned int flags) {
|
||||
switch (flags&0xff) {
|
||||
default:
|
||||
case 0:
|
||||
chipClock=COLOR_NTSC;
|
||||
baseFreqOff=0;
|
||||
break;
|
||||
void DivPlatformArcade::setFlags(const DivConfig& flags) {
|
||||
switch (flags.getInt("clockSel",0)) {
|
||||
case 1:
|
||||
chipClock=COLOR_PAL*4.0/5.0;
|
||||
baseFreqOff=12;
|
||||
|
|
@ -864,6 +859,10 @@ void DivPlatformArcade::setFlags(unsigned int flags) {
|
|||
chipClock=4000000.0;
|
||||
baseFreqOff=-122;
|
||||
break;
|
||||
default:
|
||||
chipClock=COLOR_NTSC;
|
||||
baseFreqOff=0;
|
||||
break;
|
||||
}
|
||||
rate=chipClock/64;
|
||||
for (int i=0; i<8; i++) {
|
||||
|
|
@ -879,7 +878,7 @@ void DivPlatformArcade::setYMFM(bool use) {
|
|||
useYMFM=use;
|
||||
}
|
||||
|
||||
int DivPlatformArcade::init(DivEngine* p, int channels, int sugRate, unsigned int flags) {
|
||||
int DivPlatformArcade::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