VERY experimental Nintendo Switch 2 emulator
C++
added function stubs for EatCycles and ReSchedule
bunnei4d7f3c74fd8b
diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cppindex be151665b2..4523845711 100644--- a/src/core/hle/hle.cpp+++ b/src/core/hle/hle.cpp@@ -37,6 +37,17 @@ void CallSyscall(u32 opcode) {}}+void EatCycles(u32 cycles) {+ // TODO: ImplementMe+}++void ReSchedule(const char *reason) {+#ifdef _DEBUG+ _dbg_assert_msg_(HLE, reason != 0 && strlen(reason) < 256, "ReSchedule: Invalid or too long reason.");+#endif+ // TODO: ImplementMe+}+void RegisterModule(std::string name, int num_functions, const FunctionDef* func_table) {ModuleDef module = {name, num_functions, func_table};g_module_db.push_back(module);diff --git a/src/core/hle/hle.h b/src/core/hle/hle.hindex 42f37e29cf..452546e1f8 100644--- a/src/core/hle/hle.h+++ b/src/core/hle/hle.h@@ -36,6 +36,10 @@ void RegisterModule(std::string name, int num_functions, const FunctionDef *funcvoid CallSyscall(u32 opcode);+void EatCycles(u32 cycles);++void ReSchedule(const char *reason);+void Init();void Shutdown();