diff options
| author | 2016-05-25 16:40:36 -0400 | |
|---|---|---|
| committer | 2016-05-25 16:40:36 -0400 | |
| commit | f50a32bfce099eeff510e5e314b91dcf65d317ac (patch) | |
| tree | 5bc0347199d722861ba09897e6c6e9015cf026bc /src/citra/citra.cpp | |
| parent | New3DS: Minor style cleanup to #1520. (diff) | |
| parent | Loader: Split SMDH into its own header and import helpers from QGameList (diff) | |
| download | yuzu-f50a32bfce099eeff510e5e314b91dcf65d317ac.tar.gz yuzu-f50a32bfce099eeff510e5e314b91dcf65d317ac.tar.xz yuzu-f50a32bfce099eeff510e5e314b91dcf65d317ac.zip | |
Merge pull request #1817 from linkmauve/smdh-stuff
Improve SMDH support in loaders and frontends
Diffstat (limited to 'src/citra/citra.cpp')
| -rw-r--r-- | src/citra/citra.cpp | 8 |
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) { | |||
| 114 | System::Init(emu_window.get()); | 114 | System::Init(emu_window.get()); |
| 115 | SCOPE_EXIT({ System::Shutdown(); }); | 115 | SCOPE_EXIT({ System::Shutdown(); }); |
| 116 | 116 | ||
| 117 | Loader::ResultStatus load_result = Loader::LoadFile(boot_filename); | 117 | std::unique_ptr<Loader::AppLoader> loader = Loader::GetLoader(boot_filename); |
| 118 | if (!loader) { | ||
| 119 | LOG_CRITICAL(Frontend, "Failed to obtain loader for %s!", boot_filename.c_str()); | ||
| 120 | return -1; | ||
| 121 | } | ||
| 122 | |||
| 123 | Loader::ResultStatus load_result = loader->Load(); | ||
| 118 | if (Loader::ResultStatus::Success != load_result) { | 124 | if (Loader::ResultStatus::Success != load_result) { |
| 119 | LOG_CRITICAL(Frontend, "Failed to load ROM (Error %i)!", load_result); | 125 | LOG_CRITICAL(Frontend, "Failed to load ROM (Error %i)!", load_result); |
| 120 | return -1; | 126 | return -1; |