From 259dbf17dc456dc2023ef4982ada1ddf51313f88 Mon Sep 17 00:00:00 2001 From: Dominik Kreutzer Date: Wed, 25 Oct 2023 02:21:38 +0200 Subject: [PATCH] citra-qt: ensure image interface is registered before starting game (#7090) --- src/citra_qt/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 671c8b6479..9446780613 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -2998,6 +2998,10 @@ int main(int argc, char* argv[]) { setlocale(LC_ALL, "C"); auto& system{Core::System::GetInstance()}; + + // Register Qt image interface + system.RegisterImageInterface(std::make_shared()); + GMainWindow main_window(system); // Register frontend applets @@ -3006,9 +3010,6 @@ int main(int argc, char* argv[]) { system.RegisterMiiSelector(std::make_shared(main_window)); system.RegisterSoftwareKeyboard(std::make_shared(main_window)); - // Register Qt image interface - system.RegisterImageInterface(std::make_shared()); - #ifdef __APPLE__ // Register microphone permission check. system.RegisterMicPermissionCheck(&AppleAuthorization::CheckAuthorizationForMicrophone);