diff options
| author | 2017-01-29 15:38:49 -0800 | |
|---|---|---|
| committer | 2017-01-29 15:38:49 -0800 | |
| commit | f111cd66cec3e03ce9e7236a0325f1e0b2c59855 (patch) | |
| tree | 8b31970e76f823de5249bb751789fbfcbac10686 /src/citra/citra.cpp | |
| parent | Merge pull request #2493 from Kloen/killing-warnings-final-mix (diff) | |
| parent | citra: add missing control paths for ResultStatus on rom load. Fix warning ab... (diff) | |
| download | yuzu-f111cd66cec3e03ce9e7236a0325f1e0b2c59855.tar.gz yuzu-f111cd66cec3e03ce9e7236a0325f1e0b2c59855.tar.xz yuzu-f111cd66cec3e03ce9e7236a0325f1e0b2c59855.zip | |
Merge pull request #2492 from Kloen/killing-warnings-HD1.5ReMIX
Fix OSX build warnings about unhandled enumeration values.
Diffstat (limited to 'src/citra/citra.cpp')
| -rw-r--r-- | src/citra/citra.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp index 99c096ac7..76f5caeb1 100644 --- a/src/citra/citra.cpp +++ b/src/citra/citra.cpp | |||
| @@ -141,6 +141,26 @@ int main(int argc, char** argv) { | |||
| 141 | case Core::System::ResultStatus::ErrorLoader: | 141 | case Core::System::ResultStatus::ErrorLoader: |
| 142 | LOG_CRITICAL(Frontend, "Failed to load ROM!"); | 142 | LOG_CRITICAL(Frontend, "Failed to load ROM!"); |
| 143 | return -1; | 143 | return -1; |
| 144 | case Core::System::ResultStatus::ErrorLoader_ErrorEncrypted: | ||
| 145 | LOG_CRITICAL(Frontend, "The game that you are trying to load must be decrypted before " | ||
| 146 | "being used with Citra. \n\n For more information on dumping and " | ||
| 147 | "decrypting games, please refer to: " | ||
| 148 | "https://citra-emu.org/wiki/Dumping-Game-Cartridges"); | ||
| 149 | return -1; | ||
| 150 | case Core::System::ResultStatus::ErrorLoader_ErrorInvalidFormat: | ||
| 151 | LOG_CRITICAL(Frontend, "Error while loading ROM: The ROM format is not supported."); | ||
| 152 | return -1; | ||
| 153 | case Core::System::ResultStatus::ErrorNotInitialized: | ||
| 154 | LOG_CRITICAL(Frontend, "CPUCore not initialized"); | ||
| 155 | return -1; | ||
| 156 | case Core::System::ResultStatus::ErrorSystemMode: | ||
| 157 | LOG_CRITICAL(Frontend, "Failed to determine system mode!"); | ||
| 158 | return -1; | ||
| 159 | case Core::System::ResultStatus::ErrorVideoCore: | ||
| 160 | LOG_CRITICAL(Frontend, "VideoCore not initialized"); | ||
| 161 | return -1; | ||
| 162 | case Core::System::ResultStatus::Success: | ||
| 163 | break; // Expected case | ||
| 144 | } | 164 | } |
| 145 | 165 | ||
| 146 | while (emu_window->IsOpen()) { | 166 | while (emu_window->IsOpen()) { |