Frontend: Add a powered-off window/welcome screen

This commit is contained in:
Connor McLaughlin
2019-10-20 20:37:21 +10:00
parent 884378045d
commit 0e6d1d5629
9 changed files with 8103 additions and 479 deletions

View File

@ -60,18 +60,22 @@ static int Run(int argc, char* argv[])
}
// create system
if (!host_interface->InitializeSystem(filename, exp1_filename))
const bool boot = (filename != nullptr || exp1_filename != nullptr || !state_filename.IsEmpty());
if (boot)
{
host_interface.reset();
SDL_Quit();
return -1;
if (!host_interface->InitializeSystem(filename, exp1_filename))
{
host_interface.reset();
SDL_Quit();
return -1;
}
host_interface->ConnectDevices();
if (!state_filename.IsEmpty())
host_interface->LoadState(state_filename);
}
host_interface->ConnectDevices();
if (!state_filename.IsEmpty())
host_interface->LoadState(state_filename);
// run
host_interface->Run();