mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-18 21:07:16 +01:00
34 lines
696 B
C++
34 lines
696 B
C++
|
// 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
|