mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 12:04:16 +01: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");
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user