mirror of
https://github.com/PabloMK7/citra.git
synced 2024-12-28 02:26:13 +00:00
citra-qt: ensure image interface is registered before starting game (#7090)
This commit is contained in:
parent
ec55807669
commit
259dbf17dc
|
@ -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<QtImageInterface>());
|
||||
|
||||
GMainWindow main_window(system);
|
||||
|
||||
// Register frontend applets
|
||||
|
@ -3006,9 +3010,6 @@ int main(int argc, char* argv[]) {
|
|||
system.RegisterMiiSelector(std::make_shared<QtMiiSelector>(main_window));
|
||||
system.RegisterSoftwareKeyboard(std::make_shared<QtKeyboard>(main_window));
|
||||
|
||||
// Register Qt image interface
|
||||
system.RegisterImageInterface(std::make_shared<QtImageInterface>());
|
||||
|
||||
#ifdef __APPLE__
|
||||
// Register microphone permission check.
|
||||
system.RegisterMicPermissionCheck(&AppleAuthorization::CheckAuthorizationForMicrophone);
|
||||
|
|
Loading…
Reference in a new issue