mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
You would need to find the function ids you wanna play with and write them reversed with Hex Editor. That's quite pity i have no knowledge about wxWidgets so there is no GUI to set up this.
29 lines
693 B
C++
29 lines
693 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;
|
|
std::vector<u32> m_funcs_pause_funcs;
|
|
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);
|
|
void LoadFuncPauses(void);
|
|
}; |