diff options
| author | 2014-05-14 20:49:02 -0400 | |
|---|---|---|
| committer | 2014-05-14 20:49:02 -0400 | |
| commit | 4d7f3c74fd8bc86bf73b670355e2710558a66332 (patch) | |
| tree | 1877175c78ae314679b6acc4da9b2af0e790b6d4 /src | |
| parent | fixed thread reset to not set stack address (diff) | |
| download | yuzu-4d7f3c74fd8bc86bf73b670355e2710558a66332.tar.gz yuzu-4d7f3c74fd8bc86bf73b670355e2710558a66332.tar.xz yuzu-4d7f3c74fd8bc86bf73b670355e2710558a66332.zip | |
added function stubs for EatCycles and ReSchedule
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/hle.cpp | 11 | ||||
| -rw-r--r-- | src/core/hle/hle.h | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/core/hle/hle.cpp b/src/core/hle/hle.cpp index be151665b..452384571 100644 --- a/src/core/hle/hle.cpp +++ b/src/core/hle/hle.cpp | |||
| @@ -37,6 +37,17 @@ void CallSyscall(u32 opcode) { | |||
| 37 | } | 37 | } |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | void EatCycles(u32 cycles) { | ||
| 41 | // TODO: ImplementMe | ||
| 42 | } | ||
| 43 | |||
| 44 | void ReSchedule(const char *reason) { | ||
| 45 | #ifdef _DEBUG | ||
| 46 | _dbg_assert_msg_(HLE, reason != 0 && strlen(reason) < 256, "ReSchedule: Invalid or too long reason."); | ||
| 47 | #endif | ||
| 48 | // TODO: ImplementMe | ||
| 49 | } | ||
| 50 | |||
| 40 | void RegisterModule(std::string name, int num_functions, const FunctionDef* func_table) { | 51 | void RegisterModule(std::string name, int num_functions, const FunctionDef* func_table) { |
| 41 | ModuleDef module = {name, num_functions, func_table}; | 52 | ModuleDef module = {name, num_functions, func_table}; |
| 42 | g_module_db.push_back(module); | 53 | g_module_db.push_back(module); |
diff --git a/src/core/hle/hle.h b/src/core/hle/hle.h index 42f37e29c..452546e1f 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 *func | |||
| 36 | 36 | ||
| 37 | void CallSyscall(u32 opcode); | 37 | void CallSyscall(u32 opcode); |
| 38 | 38 | ||
| 39 | void EatCycles(u32 cycles); | ||
| 40 | |||
| 41 | void ReSchedule(const char *reason); | ||
| 42 | |||
| 39 | void Init(); | 43 | void Init(); |
| 40 | 44 | ||
| 41 | void Shutdown(); | 45 | void Shutdown(); |