2014-04-11 01:30:00 +00:00
|
|
|
// 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 {
|
|
|
|
|
2014-04-11 02:15:07 +00:00
|
|
|
static std::vector<ModuleDef> g_module_db;
|
2014-04-11 01:30:00 +00:00
|
|
|
|
2014-04-11 02:15:07 +00:00
|
|
|
void RegisterModule(std::string name, int num_functions, const FunctionDef* func_table) {
|
|
|
|
ModuleDef module = {name, num_functions, func_table};
|
2014-04-11 01:30:00 +00:00
|
|
|
g_module_db.push_back(module);
|
|
|
|
}
|
|
|
|
|
|
|
|
void RegisterAllModules() {
|
|
|
|
Register_SysCall();
|
|
|
|
}
|
|
|
|
|
|
|
|
void Init() {
|
|
|
|
RegisterAllModules();
|
|
|
|
}
|
|
|
|
|
|
|
|
void Shutdown() {
|
|
|
|
g_module_db.clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace
|