summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/citra/src/citra.cpp36
1 files changed, 2 insertions, 34 deletions
diff --git a/src/citra/src/citra.cpp b/src/citra/src/citra.cpp
index 26f5a74eb..746cf083d 100644
--- a/src/citra/src/citra.cpp
+++ b/src/citra/src/citra.cpp
@@ -52,39 +52,6 @@ int __cdecl main(int argc, char **argv) {
52 52
53 System::Init(emu_window); 53 System::Init(emu_window);
54 54
55 //if (E_OK != Core::Init(emu_window)) {
56 // LOG_ERROR(TMASTER, "core initialization failed, exiting...");
57 // core::Kill();
58 // exit(1);
59 //}
60
61 //// Load a game or die...
62 //if (E_OK == dvd::LoadBootableFile(common::g_config->default_boot_file())) {
63 // if (common::g_config->enable_auto_boot()) {
64 // core::Start();
65 // } else {
66 // LOG_ERROR(TMASTER, "Autoboot required in no-GUI mode... Exiting!\n");
67 // }
68 //} else {
69 // LOG_ERROR(TMASTER, "Failed to load a bootable file... Exiting!\n");
70 // exit(E_ERR);
71 //}
72 //// run the game
73 //while(core::SYS_DIE != core::g_state) {
74 // if (core::SYS_RUNNING == core::g_state) {
75 // if(!(cpu->is_on)) {
76 // cpu->Start(); // Initialize and start CPU.
77 // } else {
78 // for(tight_loop = 0; tight_loop < 10000; ++tight_loop) {
79 // cpu->execStep();
80 // }
81 // }
82 // } else if (core::SYS_HALTED == core::g_state) {
83 // core::Stop();
84 // }
85 //}
86 //core::Kill();
87
88 std::string boot_filename = "homebrew.elf"; 55 std::string boot_filename = "homebrew.elf";
89 std::string error_str; 56 std::string error_str;
90 57
@@ -93,7 +60,8 @@ int __cdecl main(int argc, char **argv) {
93 if (!res) { 60 if (!res) {
94 ERROR_LOG(BOOT, "Failed to load ROM: %s", error_str.c_str()); 61 ERROR_LOG(BOOT, "Failed to load ROM: %s", error_str.c_str());
95 } 62 }
96 for (int tight_loop = 0; tight_loop < 10000; ++tight_loop) { 63
64 for (;;) {
97 Core::SingleStep(); 65 Core::SingleStep();
98 } 66 }
99 67