Add FPS to SDL title bar

Also fix a small issue with incorrect shutdown ordering in SDL.
Previously the system would still be running so the telemetry task
didn't launch and detached_tasks would assert(count == 0)
This commit is contained in:
James Rowe 2019-09-21 21:39:01 -06:00
parent 223bfc9a2a
commit 7152f4c748
3 changed files with 16 additions and 2 deletions

View file

@ -346,8 +346,6 @@ int main(int argc, char** argv) {
Core::System& system{Core::System::GetInstance()};
SCOPE_EXIT({ system.Shutdown(); });
const Core::System::ResultStatus load_result{system.Load(*emu_window, filepath)};
switch (load_result) {
@ -418,6 +416,8 @@ int main(int argc, char** argv) {
system.VideoDumper().StopDumping();
}
system.Shutdown();
detached_tasks.WaitForAllTasks();
return 0;
}