diff options
Diffstat (limited to 'src/core/hle.cpp')
| -rw-r--r-- | src/core/hle.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/core/hle.cpp b/src/core/hle.cpp new file mode 100644 index 000000000..f0c7d2178 --- /dev/null +++ b/src/core/hle.cpp | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | // Copyright 2014 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #include <vector> | ||
| 6 | |||
| 7 | #include "core/hle/hle.h" | ||
| 8 | #include "core/hle/hle_syscall.h" | ||
| 9 | |||
| 10 | //////////////////////////////////////////////////////////////////////////////////////////////////// | ||
| 11 | |||
| 12 | namespace HLE { | ||
| 13 | |||
| 14 | static std::vector<HLEModule> g_module_db; | ||
| 15 | |||
| 16 | void RegisterModule(const char *name, int num_functions, const HLEFunction *func_table) { | ||
| 17 | HLEModule module = {name, num_functions, func_table}; | ||
| 18 | g_module_db.push_back(module); | ||
| 19 | } | ||
| 20 | |||
| 21 | void RegisterAllModules() { | ||
| 22 | Register_SysCall(); | ||
| 23 | } | ||
| 24 | |||
| 25 | void Init() { | ||
| 26 | RegisterAllModules(); | ||
| 27 | } | ||
| 28 | |||
| 29 | void Shutdown() { | ||
| 30 | g_module_db.clear(); | ||
| 31 | } | ||
| 32 | |||
| 33 | } // namespace | ||