diff options
author | bunnei <bunneidev@gmail.com> | 2021-07-30 22:28:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 22:28:24 +0200 |
commit | 2c7fdee7a759fad644e5323c89d929e45ae19efc (patch) | |
tree | de87c26ba0194098a079c7feec88dc1d8c997932 /src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | |
parent | Merge pull request #6759 from ReinUsesLisp/pipeline-statistics (diff) | |
parent | emu_window: Remove global system instance (diff) | |
download | yuzu-2c7fdee7a759fad644e5323c89d929e45ae19efc.tar yuzu-2c7fdee7a759fad644e5323c89d929e45ae19efc.tar.gz yuzu-2c7fdee7a759fad644e5323c89d929e45ae19efc.tar.bz2 yuzu-2c7fdee7a759fad644e5323c89d929e45ae19efc.tar.lz yuzu-2c7fdee7a759fad644e5323c89d929e45ae19efc.tar.xz yuzu-2c7fdee7a759fad644e5323c89d929e45ae19efc.tar.zst yuzu-2c7fdee7a759fad644e5323c89d929e45ae19efc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp index ea3e0ada4..f643a4b0b 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp @@ -16,8 +16,8 @@ #include "yuzu_cmd/emu_window/emu_window_sdl2.h" #include "yuzu_cmd/yuzu_icon.h" -EmuWindow_SDL2::EmuWindow_SDL2(InputCommon::InputSubsystem* input_subsystem_) - : input_subsystem{input_subsystem_} { +EmuWindow_SDL2::EmuWindow_SDL2(InputCommon::InputSubsystem* input_subsystem_, Core::System& system_) + : input_subsystem{input_subsystem_}, system{system_} { if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK) < 0) { LOG_CRITICAL(Frontend, "Failed to initialize SDL2! Exiting..."); exit(1); @@ -218,7 +218,7 @@ void EmuWindow_SDL2::WaitEvent() { const u32 current_time = SDL_GetTicks(); if (current_time > last_time + 2000) { - const auto results = Core::System::GetInstance().GetAndResetPerfStats(); + const auto results = system.GetAndResetPerfStats(); const auto title = fmt::format("yuzu {} | {}-{} | FPS: {:.0f} ({:.0f}%)", Common::g_build_fullname, Common::g_scm_branch, Common::g_scm_desc, results.average_game_fps, |