Pad: Fix loading save state issues with memory cards
This commit is contained in:
@ -61,13 +61,18 @@ static int Run(int argc, char* argv[])
|
||||
}
|
||||
|
||||
// create system
|
||||
if (!host_interface->InitializeSystem(filename, exp1_filename, state_filename.IsEmpty() ? nullptr : state_filename.GetCharArray()))
|
||||
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);
|
||||
|
||||
// run
|
||||
host_interface->Run();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user