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:
parent
91678645a7
commit
ce124e0aa0
3 changed files with 14 additions and 0 deletions
|
@ -269,6 +269,8 @@ namespace
|
|||
{
|
||||
LoadConfiguration();
|
||||
|
||||
CheckCpu();
|
||||
|
||||
FrameRefreshStatus(DRAW_LEDS | DRAW_BUTTON_DRIVES);
|
||||
|
||||
MemInitialize();
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
#pragma once
|
||||
|
||||
void LoadConfiguration(void);
|
||||
void CheckCpu();
|
||||
|
|
Loading…
Add table
Reference in a new issue