summaryrefslogtreecommitdiffstats
path: root/src/core/hle/hle.h
diff options
context:
space:
mode:
authorbunnei <ericbunnie@gmail.com>2014-04-11 04:15:07 +0200
committerbunnei <ericbunnie@gmail.com>2014-04-11 04:15:07 +0200
commit3bd041f5b0cd481ded892594d569462492679e39 (patch)
tree6f4c64d1ae09983b8c4d2b8c10f3fa51bef01507 /src/core/hle/hle.h
parent- removed syscall classes (will just use HLEFunction) (diff)
downloadyuzu-3bd041f5b0cd481ded892594d569462492679e39.tar
yuzu-3bd041f5b0cd481ded892594d569462492679e39.tar.gz
yuzu-3bd041f5b0cd481ded892594d569462492679e39.tar.bz2
yuzu-3bd041f5b0cd481ded892594d569462492679e39.tar.lz
yuzu-3bd041f5b0cd481ded892594d569462492679e39.tar.xz
yuzu-3bd041f5b0cd481ded892594d569462492679e39.tar.zst
yuzu-3bd041f5b0cd481ded892594d569462492679e39.zip
Diffstat (limited to 'src/core/hle/hle.h')
-rw-r--r--src/core/hle/hle.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/core/hle/hle.h b/src/core/hle/hle.h
index 6648c787f..35c8a4621 100644
--- a/src/core/hle/hle.h
+++ b/src/core/hle/hle.h
@@ -9,29 +9,31 @@
////////////////////////////////////////////////////////////////////////////////////////////////////
-typedef void (*HLEFunc)();
+#define PARAM(n) Core::g_app_core->GetReg(n)
+#define RETURN(n) Core::g_app_core->SetReg(0, n)
+
+////////////////////////////////////////////////////////////////////////////////////////////////////
+
+namespace HLE {
-struct HLEFunction {
+typedef void (*Func)();
+
+struct FunctionDef {
u32 id;
- HLEFunc func;
- const char* name;
+ Func func;
+ std::string name;
};
-struct HLEModule {
- const char* name;
+struct ModuleDef {
+ std::string name;
int num_funcs;
- const HLEFunction* func_table;
+ const FunctionDef* func_table;
};
-#define PARAM(n) Core::g_app_core->GetReg(n)
-#define RETURN(n) Core::g_app_core->SetReg(0, n)
-
-namespace HLE {
-
void Init();
void Shutdown();
-void RegisterModule(const char *name, int num_functions, const HLEFunction *func_table);
+void RegisterModule(std::string name, int num_functions, const FunctionDef *func_table);
} // namespace