summaryrefslogtreecommitdiffstats
path: root/src/core/hle.cpp
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-04-11 03:30:00 +0200
committerbunnei <ericbunnie@gmail.com>2014-04-11 03:30:00 +0200
commit2a7d7ce55d51a1cf893d14e893b87941df4a2f03 (patch)
treed9e4d6d2dfe28d0ddc32de6775d79ef002eea62e /src/core/hle.cpp
parentMerge branch 'master' into hle-interface (diff)
downloadyuzu-2a7d7ce55d51a1cf893d14e893b87941df4a2f03.tar
yuzu-2a7d7ce55d51a1cf893d14e893b87941df4a2f03.tar.gz
yuzu-2a7d7ce55d51a1cf893d14e893b87941df4a2f03.tar.bz2
yuzu-2a7d7ce55d51a1cf893d14e893b87941df4a2f03.tar.lz
yuzu-2a7d7ce55d51a1cf893d14e893b87941df4a2f03.tar.xz
yuzu-2a7d7ce55d51a1cf893d14e893b87941df4a2f03.tar.zst
yuzu-2a7d7ce55d51a1cf893d14e893b87941df4a2f03.zip
Diffstat (limited to 'src/core/hle.cpp')
-rw-r--r--src/core/hle.cpp33
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 @@
+// Copyright 2014 Citra Emulator Project
+// Licensed under GPLv2
+// Refer to the license.txt file included.
+
+#include <vector>
+
+#include "core/hle/hle.h"
+#include "core/hle/hle_syscall.h"
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+namespace HLE {
+
+static std::vector<HLEModule> g_module_db;
+
+void RegisterModule(const char *name, int num_functions, const HLEFunction *func_table) {
+ HLEModule module = {name, num_functions, func_table};
+ g_module_db.push_back(module);
+}
+
+void RegisterAllModules() {
+ Register_SysCall();
+}
+
+void Init() {
+ RegisterAllModules();
+}
+
+void Shutdown() {
+ g_module_db.clear();
+}
+
+} // namespace