summaryrefslogtreecommitdiffstats
path: root/src/citra
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-05-25 22:40:36 +0200
committerbunnei <bunneidev@gmail.com>2016-05-25 22:40:36 +0200
commitf50a32bfce099eeff510e5e314b91dcf65d317ac (patch)
tree5bc0347199d722861ba09897e6c6e9015cf026bc /src/citra
parentNew3DS: Minor style cleanup to #1520. (diff)
parentLoader: Split SMDH into its own header and import helpers from QGameList (diff)
downloadyuzu-f50a32bfce099eeff510e5e314b91dcf65d317ac.tar
yuzu-f50a32bfce099eeff510e5e314b91dcf65d317ac.tar.gz
yuzu-f50a32bfce099eeff510e5e314b91dcf65d317ac.tar.bz2
yuzu-f50a32bfce099eeff510e5e314b91dcf65d317ac.tar.lz
yuzu-f50a32bfce099eeff510e5e314b91dcf65d317ac.tar.xz
yuzu-f50a32bfce099eeff510e5e314b91dcf65d317ac.tar.zst
yuzu-f50a32bfce099eeff510e5e314b91dcf65d317ac.zip
Diffstat (limited to 'src/citra')
-rw-r--r--src/citra/citra.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp
index b4501eb2e..e01216734 100644
--- a/src/citra/citra.cpp
+++ b/src/citra/citra.cpp
@@ -114,7 +114,13 @@ int main(int argc, char **argv) {
System::Init(emu_window.get());
SCOPE_EXIT({ System::Shutdown(); });
- Loader::ResultStatus load_result = Loader::LoadFile(boot_filename);
+ std::unique_ptr<Loader::AppLoader> loader = Loader::GetLoader(boot_filename);
+ if (!loader) {
+ LOG_CRITICAL(Frontend, "Failed to obtain loader for %s!", boot_filename.c_str());
+ return -1;
+ }
+
+ Loader::ResultStatus load_result = loader->Load();
if (Loader::ResultStatus::Success != load_result) {
LOG_CRITICAL(Frontend, "Failed to load ROM (Error %i)!", load_result);
return -1;