It is too easy to set the wrong CPU and then nothing works.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2017-06-29 21:24:25 +01:00
parent 91678645a7
commit ce124e0aa0
3 changed files with 14 additions and 0 deletions

View file

@ -269,6 +269,8 @@ namespace
{
LoadConfiguration();
CheckCpu();
FrameRefreshStatus(DRAW_LEDS | DRAW_BUTTON_DRIVES);
MemInitialize();

View file

@ -300,3 +300,14 @@ void LoadConfiguration(void)
g_bConfirmReboot = dwTmp;
#endif
}
void CheckCpu()
{
const eApple2Type apple2Type = GetApple2Type();
const eCpuType defaultCpu = ProbeMainCpuDefault(apple2Type);
const eCpuType mainCpu = GetMainCpu();
if (mainCpu != defaultCpu)
{
LogFileOutput("Detected non standard CPU for Apple2 = %d: default = %d, actual = %d\n", apple2Type, defaultCpu, mainCpu);
}
}

View file

@ -1,3 +1,4 @@
#pragma once
void LoadConfiguration(void);
void CheckCpu();