Browse and Boot

This commit is contained in:
raven02 2013-02-18 03:39:31 +08:00
parent cba9baaca6
commit 8425a123e2
3 changed files with 6 additions and 2 deletions

View File

@ -49,6 +49,7 @@ void CConfig::Load(const char *iniFileName)
general->Get("FirstRun", &bFirstRun, true);
general->Get("AutoLoadLast", &bAutoLoadLast, false);
general->Get("AutoRun", &bAutoRun, true);
general->Get("Browse", &bBrowse, false);
general->Get("ConfirmOnQuit", &bConfirmOnQuit, false);
general->Get("IgnoreBadMemAccess", &bIgnoreBadMemAccess, true);
general->Get("CurrentDirectory", &currentDirectory, "");
@ -112,6 +113,7 @@ void CConfig::Save()
general->Set("FirstRun", bFirstRun);
general->Set("AutoLoadLast", bAutoLoadLast);
general->Set("AutoRun", bAutoRun);
general->Set("Browse", bBrowse);
general->Set("ConfirmOnQuit", bConfirmOnQuit);
general->Set("IgnoreBadMemAccess", bIgnoreBadMemAccess);
general->Set("CurrentDirectory", currentDirectory);

View File

@ -44,6 +44,7 @@ public:
bool bSpeedLimit;
bool bConfirmOnQuit;
bool bAutoRun; // start immediately
bool bBrowse;
// Core
bool bIgnoreBadMemAccess;

View File

@ -159,8 +159,9 @@ int WINAPI WinMain(HINSTANCE _hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLin
EmuThread_Start(fileToStart);
}
// else
// MainWindow::BrowseAndBoot();
if (g_Config.bBrowse)
MainWindow::BrowseAndBoot();
if (!hideLog)
SetForegroundWindow(hwndMain);