diff options
| author | 2014-03-31 22:42:19 -0400 | |
|---|---|---|
| committer | 2014-03-31 22:42:19 -0400 | |
| commit | 81b61ee720341b507ef6c88d560b6250a38f8916 (patch) | |
| tree | 93439ef61e07c672a79332d3728c28c55235c0a9 /src | |
| parent | Basic QT window (diff) | |
| download | yuzu-81b61ee720341b507ef6c88d560b6250a38f8916.tar.gz yuzu-81b61ee720341b507ef6c88d560b6250a38f8916.tar.xz yuzu-81b61ee720341b507ef6c88d560b6250a38f8916.zip | |
Load file in qt window
Diffstat (limited to 'src')
| -rw-r--r-- | src/citra_qt/src/bootmanager.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/citra_qt/src/bootmanager.cpp b/src/citra_qt/src/bootmanager.cpp index 8d7b5e446..cda618778 100644 --- a/src/citra_qt/src/bootmanager.cpp +++ b/src/citra_qt/src/bootmanager.cpp | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #include "bootmanager.hxx" | 5 | #include "bootmanager.hxx" |
| 6 | 6 | ||
| 7 | #include "core.h" | 7 | #include "core.h" |
| 8 | #include "loader.h" | ||
| 8 | 9 | ||
| 9 | #include "version.h" | 10 | #include "version.h" |
| 10 | 11 | ||
| @@ -35,20 +36,19 @@ void EmuThread::run() | |||
| 35 | } | 36 | } |
| 36 | 37 | ||
| 37 | // Load a game or die... | 38 | // Load a game or die... |
| 39 | std::string boot_filename = filename; | ||
| 40 | std::string error_str; | ||
| 41 | bool res = Loader::LoadFile(boot_filename, &error_str); | ||
| 42 | |||
| 43 | if (!res) { | ||
| 44 | ERROR_LOG(BOOT, "Failed to load ROM: %s", error_str.c_str()); | ||
| 45 | } | ||
| 46 | |||
| 38 | Core::Start(); //autoboot for now | 47 | Core::Start(); //autoboot for now |
| 39 | /* | ||
| 40 | if (E_OK == dvd::LoadBootableFile(filename)) { | ||
| 41 | if (common::g_config->enable_auto_boot()) { | ||
| 42 | core::Start(); | ||
| 43 | } else { | ||
| 44 | LOG_ERROR(TMASTER, "Autoboot required in no-GUI mode... Exiting!\n"); | ||
| 45 | } | ||
| 46 | } else { | ||
| 47 | LOG_ERROR(TMASTER, "Failed to load a bootable file... Exiting!\n"); | ||
| 48 | exit(E_ERR); | ||
| 49 | } | ||
| 50 | */ | ||
| 51 | 48 | ||
| 49 | for (int tight_loop = 0; tight_loop < 10000; ++tight_loop) { | ||
| 50 | Core::SingleStep(); | ||
| 51 | } | ||
| 52 | /* | 52 | /* |
| 53 | while(core::SYS_DIE != core::g_state) | 53 | while(core::SYS_DIE != core::g_state) |
| 54 | { | 54 | { |