--- BasiliskII/src/main.cpp 1999/10/25 08:07:45 1.3 +++ BasiliskII/src/main.cpp 2001/02/02 20:52:57 1.7 @@ -1,7 +1,7 @@ /* * main.cpp - Startup/shutdown code * - * Basilisk II (C) 1997-1999 Christian Bauer + * Basilisk II (C) 1997-2001 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -79,13 +79,19 @@ bool InitAll(void) TwentyFourBitAddressing = true; break; case ROM_VERSION_II: - CPUType = 2; + CPUType = PrefsFindInt32("cpu"); + if (CPUType < 2) CPUType = 2; + if (CPUType > 4) CPUType = 4; FPUType = PrefsFindBool("fpu") ? 1 : 0; + if (CPUType == 4) FPUType = 1; // 68040 always with FPU TwentyFourBitAddressing = true; break; case ROM_VERSION_32: - CPUType = 3; + CPUType = PrefsFindInt32("cpu"); + if (CPUType < 2) CPUType = 2; + if (CPUType > 4) CPUType = 4; FPUType = PrefsFindBool("fpu") ? 1 : 0; + if (CPUType == 4) FPUType = 1; // 68040 always with FPU TwentyFourBitAddressing = false; break; } @@ -96,10 +102,10 @@ bool InitAll(void) XPRAMInit(); // Set boot volume - int16 i16 = PrefsFindInt16("bootdrive"); + int16 i16 = PrefsFindInt32("bootdrive"); XPRAM[0x78] = i16 >> 8; XPRAM[0x79] = i16 & 0xff; - i16 = PrefsFindInt16("bootdriver"); + i16 = PrefsFindInt32("bootdriver"); XPRAM[0x7a] = i16 >> 8; XPRAM[0x7b] = i16 & 0xff;