mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
Compilation fix
This commit is contained in:
parent
652c5901f8
commit
102f8cf993
2 changed files with 15 additions and 2 deletions
|
@ -173,3 +173,13 @@ bool Module::CheckID(u32 id, ID*& _id) const
|
||||||
{
|
{
|
||||||
return Emu.GetIdManager().CheckID(id) && (_id = &Emu.GetIdManager().GetID(id))->m_name == GetName();
|
return Emu.GetIdManager().CheckID(id) && (_id = &Emu.GetIdManager().GetID(id))->m_name == GetName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IdManager& Module::GetIdManager() const
|
||||||
|
{
|
||||||
|
return Emu.GetIdManager();
|
||||||
|
}
|
||||||
|
|
||||||
|
StaticFuncManager& Module::GetSFuncManager() const
|
||||||
|
{
|
||||||
|
return Emu.GetSFuncManager();
|
||||||
|
}
|
|
@ -50,6 +50,9 @@ class Module : public LogBase
|
||||||
void (*m_load_func)();
|
void (*m_load_func)();
|
||||||
void (*m_unload_func)();
|
void (*m_unload_func)();
|
||||||
|
|
||||||
|
IdManager& GetIdManager() const;
|
||||||
|
StaticFuncManager& GetSFuncManager() const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
std::vector<ModuleFunc*> m_funcs_list;
|
std::vector<ModuleFunc*> m_funcs_list;
|
||||||
|
|
||||||
|
@ -106,7 +109,7 @@ public:
|
||||||
template<typename T>
|
template<typename T>
|
||||||
u32 GetNewId(T* data, IDType type = TYPE_OTHER)
|
u32 GetNewId(T* data, IDType type = TYPE_OTHER)
|
||||||
{
|
{
|
||||||
return Emu.GetIdManager().GetNewID<T>(GetName(), data, type);
|
return GetIdManager().GetNewID<T>(GetName(), data, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T> __forceinline void AddFunc(u32 id, T func);
|
template<typename T> __forceinline void AddFunc(u32 id, T func);
|
||||||
|
@ -152,5 +155,5 @@ __forceinline void Module::AddFuncSub(const char group[8], const u64 ops[], cons
|
||||||
op.crc = re(op.crc);
|
op.crc = re(op.crc);
|
||||||
sf->ops.push_back(op);
|
sf->ops.push_back(op);
|
||||||
}
|
}
|
||||||
Emu.GetSFuncManager().push_back(sf);
|
GetSFuncManager().push_back(sf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue