summaryrefslogtreecommitdiffstats
path: root/src/citra
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-04-07 06:53:47 +0200
committerbunnei <ericbunnie@gmail.com>2014-04-07 06:53:47 +0200
commitefef514fd8252e1f07cd1b45455dbb5207f2b0c3 (patch)
treedb864ed09c4f31ea9f16c6c4beefa72bbc00b6f2 /src/citra
parentadded support for renderering the external framebuffers (diff)
downloadyuzu-efef514fd8252e1f07cd1b45455dbb5207f2b0c3.tar
yuzu-efef514fd8252e1f07cd1b45455dbb5207f2b0c3.tar.gz
yuzu-efef514fd8252e1f07cd1b45455dbb5207f2b0c3.tar.bz2
yuzu-efef514fd8252e1f07cd1b45455dbb5207f2b0c3.tar.lz
yuzu-efef514fd8252e1f07cd1b45455dbb5207f2b0c3.tar.xz
yuzu-efef514fd8252e1f07cd1b45455dbb5207f2b0c3.tar.zst
yuzu-efef514fd8252e1f07cd1b45455dbb5207f2b0c3.zip
Diffstat (limited to 'src/citra')
-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) {
System::Init(emu_window);
- //if (E_OK != Core::Init(emu_window)) {
- // LOG_ERROR(TMASTER, "core initialization failed, exiting...");
- // core::Kill();
- // exit(1);
- //}
-
- //// Load a game or die...
- //if (E_OK == dvd::LoadBootableFile(common::g_config->default_boot_file())) {
- // if (common::g_config->enable_auto_boot()) {
- // core::Start();
- // } else {
- // LOG_ERROR(TMASTER, "Autoboot required in no-GUI mode... Exiting!\n");
- // }
- //} else {
- // LOG_ERROR(TMASTER, "Failed to load a bootable file... Exiting!\n");
- // exit(E_ERR);
- //}
- //// run the game
- //while(core::SYS_DIE != core::g_state) {
- // if (core::SYS_RUNNING == core::g_state) {
- // if(!(cpu->is_on)) {
- // cpu->Start(); // Initialize and start CPU.
- // } else {
- // for(tight_loop = 0; tight_loop < 10000; ++tight_loop) {
- // cpu->execStep();
- // }
- // }
- // } else if (core::SYS_HALTED == core::g_state) {
- // core::Stop();
- // }
- //}
- //core::Kill();
-
std::string boot_filename = "homebrew.elf";
std::string error_str;
@@ -93,7 +60,8 @@ int __cdecl main(int argc, char **argv) {
if (!res) {
ERROR_LOG(BOOT, "Failed to load ROM: %s", error_str.c_str());
}
- for (int tight_loop = 0; tight_loop < 10000; ++tight_loop) {
+
+ for (;;) {
Core::SingleStep();
}