diff options
Diffstat (limited to '')
| -rw-r--r-- | src/citra_qt/main.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp index 997e82cc9..e5190d48a 100644 --- a/src/citra_qt/main.cpp +++ b/src/citra_qt/main.cpp | |||
| @@ -123,7 +123,7 @@ GMainWindow::~GMainWindow() | |||
| 123 | delete render_window; | 123 | delete render_window; |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | void GMainWindow::BootGame(const char* filename) | 126 | void GMainWindow::BootGame(std::string filename) |
| 127 | { | 127 | { |
| 128 | NOTICE_LOG(MASTER_LOG, "citra starting...\n"); | 128 | NOTICE_LOG(MASTER_LOG, "citra starting...\n"); |
| 129 | 129 | ||
| @@ -134,8 +134,7 @@ void GMainWindow::BootGame(const char* filename) | |||
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | // Load a game or die... | 136 | // Load a game or die... |
| 137 | std::string boot_filename = filename; | 137 | if (Loader::ResultStatus::Success != Loader::LoadFile(filename)) { |
| 138 | if (Loader::ResultStatus::Success != Loader::LoadFile(boot_filename)) { | ||
| 139 | ERROR_LOG(BOOT, "Failed to load ROM!"); | 138 | ERROR_LOG(BOOT, "Failed to load ROM!"); |
| 140 | } | 139 | } |
| 141 | 140 | ||