diff options
author | bunnei <bunneidev@gmail.com> | 2016-05-25 16:40:36 -0400 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-05-25 16:40:36 -0400 |
commit | f50a32bfce099eeff510e5e314b91dcf65d317ac (patch) | |
tree | 5bc0347199d722861ba09897e6c6e9015cf026bc /src/citra_qt/main.cpp | |
parent | c106f71bebdc6fffc03967f5a57618cfbe2ebaed (diff) | |
parent | 080a2d719ca825961ec2db5f26ad22e43d456c5a (diff) |
Merge pull request #1817 from linkmauve/smdh-stuff
Improve SMDH support in loaders and frontends
Diffstat (limited to 'src/citra_qt/main.cpp')
-rw-r--r-- | src/citra_qt/main.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index a85c94a4b..6239160bc 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp @@ -272,7 +272,15 @@ bool GMainWindow::InitializeSystem() { } bool GMainWindow::LoadROM(const std::string& filename) { - Loader::ResultStatus result = Loader::LoadFile(filename); + std::unique_ptr<Loader::AppLoader> app_loader = Loader::GetLoader(filename); + if (!app_loader) { + LOG_CRITICAL(Frontend, "Failed to obtain loader for %s!", filename.c_str()); + QMessageBox::critical(this, tr("Error while loading ROM!"), + tr("The ROM format is not supported.")); + return false; + } + + Loader::ResultStatus result = app_loader->Load(); if (Loader::ResultStatus::Success != result) { LOG_CRITICAL(Frontend, "Failed to load ROM!"); System::Shutdown(); |