citra-qt: ensure image interface is registered before starting game (#7090)

This commit is contained in:
Dominik Kreutzer 2023-10-25 02:21:38 +02:00 committed by GitHub
parent ec55807669
commit 259dbf17dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2998,6 +2998,10 @@ int main(int argc, char* argv[]) {
setlocale(LC_ALL, "C"); setlocale(LC_ALL, "C");
auto& system{Core::System::GetInstance()}; auto& system{Core::System::GetInstance()};
// Register Qt image interface
system.RegisterImageInterface(std::make_shared<QtImageInterface>());
GMainWindow main_window(system); GMainWindow main_window(system);
// Register frontend applets // Register frontend applets
@ -3006,9 +3010,6 @@ int main(int argc, char* argv[]) {
system.RegisterMiiSelector(std::make_shared<QtMiiSelector>(main_window)); system.RegisterMiiSelector(std::make_shared<QtMiiSelector>(main_window));
system.RegisterSoftwareKeyboard(std::make_shared<QtKeyboard>(main_window)); system.RegisterSoftwareKeyboard(std::make_shared<QtKeyboard>(main_window));
// Register Qt image interface
system.RegisterImageInterface(std::make_shared<QtImageInterface>());
#ifdef __APPLE__ #ifdef __APPLE__
// Register microphone permission check. // Register microphone permission check.
system.RegisterMicPermissionCheck(&AppleAuthorization::CheckAuthorizationForMicrophone); system.RegisterMicPermissionCheck(&AppleAuthorization::CheckAuthorizationForMicrophone);