mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
VideoBackends: Combine Initialize/Prepare and Cleanup/Shutdown methods
Also allows the work previously done in Prepare to return a failure status.
This commit is contained in:
@ -464,11 +464,7 @@ static void EmuThread(std::unique_ptr<BootParameters> boot)
|
||||
PanicAlert("Failed to initialize video backend!");
|
||||
return;
|
||||
}
|
||||
g_video_backend->Video_Prepare();
|
||||
Common::ScopeGuard video_guard{[] {
|
||||
g_video_backend->Video_Cleanup();
|
||||
g_video_backend->Shutdown();
|
||||
}};
|
||||
Common::ScopeGuard video_guard{[] { g_video_backend->Shutdown(); }};
|
||||
|
||||
if (cpu_info.HTT)
|
||||
SConfig::GetInstance().bDSPThread = cpu_info.num_cores > 4;
|
||||
|
Reference in New Issue
Block a user