mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-02-27 12:29:37 +00:00
Minor: Fix Benchmark assert
This commit is contained in:
parent
a620b1b6b6
commit
f5ec940189
@ -44,8 +44,8 @@ Disk
|
||||
. Enhanced disk speed WM_USER_RESTART Why?
|
||||
. HDD enable WM_USER_RESTART
|
||||
Advanced
|
||||
. Save State WM_USER_SAVESTATE
|
||||
. Load State WM_USER_LOADSTATE
|
||||
. Save State WM_USER_SAVESTATE TODO: Forces PSBTN_OK (since any config changes are discarded)
|
||||
. Load State WM_USER_LOADSTATE TODO: Forces PSBTN_OK (since any config changes are discarded)
|
||||
. Clone WM_USER_RESTART
|
||||
. MrFreeze Rom WM_USER_RESTART
|
||||
|
||||
@ -308,8 +308,7 @@ void CPropertySheetHelper::PostMsgAfterClose(HWND hWnd, PAGETYPE page)
|
||||
|
||||
if (m_ConfigNew.m_bDoBenchmark)
|
||||
{
|
||||
uAfterClose = WM_USER_BENCHMARK; // which implies WM_USER_RESTART
|
||||
m_ConfigNew = m_ConfigOld.m_bDoBenchmark;
|
||||
uAfterClose = WM_USER_BENCHMARK; // which implies WM_USER_RESTART (actually it doesn't)
|
||||
}
|
||||
|
||||
if (uAfterClose)
|
||||
@ -427,8 +426,16 @@ bool CPropertySheetHelper::HardwareConfigChanged(HWND hWnd)
|
||||
|
||||
if (strMsgMain.empty())
|
||||
{
|
||||
if (CONFIG_CHANGED(m_bDoBenchmark))
|
||||
strMsg = "The emulator needs to restart to perform the benchmark.\n";
|
||||
else
|
||||
_ASSERT(0);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (CONFIG_CHANGED(m_bDoBenchmark))
|
||||
strMsgMain += ". Benchmark\n";
|
||||
}
|
||||
|
||||
std::string strMsgPost("\n");
|
||||
strMsgPost += "This change will not take effect until the next time you restart the emulator.\n\n";
|
||||
|
Loading…
x
Reference in New Issue
Block a user