mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Would have a configuration window (with create the list, and enable/disable, being something similar to VFSManger and etc). Move the code to Debug::AutoPause in AutoPause.cpp and AutoPause.h It triggers currently in GameViewer, and would finally change to somewhere else. Well and now it is all enabled (Function call + System call) by default.
27 lines
No EOL
626 B
C++
27 lines
No EOL
626 B
C++
#pragma once
|
|
#include "Modules.h"
|
|
|
|
class ModuleManager
|
|
{
|
|
Module* m_modules[3][0xff];
|
|
uint m_max_module_id;
|
|
uint m_module_2_count;
|
|
std::mutex m_funcs_lock;
|
|
std::vector<ModuleFunc *> m_modules_funcs_list;
|
|
std::vector<Module> m_mod_init;
|
|
bool initialized;
|
|
public:
|
|
ModuleManager();
|
|
~ModuleManager();
|
|
|
|
void init();
|
|
void AddFunc(ModuleFunc *func);
|
|
void SetModule(int id, Module* module, bool with_data);
|
|
bool IsLoadedFunc(u32 id);
|
|
bool CallFunc(u32 num);
|
|
bool UnloadFunc(u32 id);
|
|
void UnloadModules();
|
|
u32 GetFuncNumById(u32 id);
|
|
Module* GetModuleByName(const std::string& name);
|
|
Module* GetModuleById(u16 id);
|
|
}; |