- removed syscall classes (will just use HLEFunction)

- added hle.cpp and module registration
- removed unused code
This commit is contained in:
bunnei 2014-04-10 21:30:00 -04:00
parent 95f237a086
commit 2a7d7ce55d
6 changed files with 54 additions and 15 deletions

33
src/core/hle.cpp Normal file
View file

@ -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