mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-17 20:35:18 +00:00
Core: Apply const to some functions
This commit is contained in:
parent
5a043ddacb
commit
82840282fb
11 changed files with 27 additions and 26 deletions
|
|
@ -233,7 +233,7 @@ public:
|
|||
return result;
|
||||
}
|
||||
|
||||
bool ConditionPassed(u8 cond)
|
||||
bool ConditionPassed(u8 cond) const
|
||||
{
|
||||
bool result = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -528,7 +528,7 @@ void CompilePPUProgram::LoadArgs()
|
|||
m_end_args = m_args.size() > 0;
|
||||
}
|
||||
|
||||
u32 CompilePPUProgram::GetBranchValue(const std::string& branch_name)
|
||||
u32 CompilePPUProgram::GetBranchValue(const std::string& branch_name) const
|
||||
{
|
||||
for(const Branch& branch : m_branches)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ protected:
|
|||
|
||||
void DetectArgInfo(Arg& arg);
|
||||
void LoadArgs();
|
||||
u32 GetBranchValue(const std::string& branch);
|
||||
u32 GetBranchValue(const std::string& branch) const;
|
||||
|
||||
bool SetNextArgType(u32 types, bool show_err = true);
|
||||
bool SetNextArgBranch(u8 aa, bool show_err = true);
|
||||
|
|
|
|||
|
|
@ -29,12 +29,12 @@ class SPURSManagerEventFlag
|
|||
public:
|
||||
SPURSManagerEventFlag(u32 flagClearMode, u32 flagDirection);
|
||||
|
||||
u32 _getDirection()
|
||||
u32 _getDirection() const
|
||||
{
|
||||
return this->flagDirection;
|
||||
}
|
||||
|
||||
u32 _getClearMode ()
|
||||
u32 _getClearMode() const
|
||||
{
|
||||
return this->flagClearMode;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ public:
|
|||
this->low = this->low & mask;
|
||||
}
|
||||
//Slice 0 or 1
|
||||
u8 checkSliceRounding(u8 slice)
|
||||
u8 checkSliceRounding(u8 slice) const
|
||||
{
|
||||
switch(slice)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ ModuleManager::~ModuleManager()
|
|||
UnloadModules();
|
||||
}
|
||||
|
||||
bool ModuleManager::IsLoadedFunc(u32 id)
|
||||
bool ModuleManager::IsLoadedFunc(u32 id) const
|
||||
{
|
||||
for (u32 i = 0; i<m_modules_funcs_list.size(); ++i)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ public:
|
|||
void init();
|
||||
void AddFunc(ModuleFunc *func);
|
||||
void SetModule(int id, Module* module, bool with_data);
|
||||
bool IsLoadedFunc(u32 id);
|
||||
bool IsLoadedFunc(u32 id) const;
|
||||
bool CallFunc(u32 num);
|
||||
bool UnloadFunc(u32 id);
|
||||
void UnloadModules();
|
||||
|
|
|
|||
|
|
@ -43,7 +43,8 @@ public:
|
|||
return GetIdManager().CheckID(id) && GetIdManager().GetID(id).m_name == GetName();
|
||||
}
|
||||
|
||||
template<typename T> bool CheckId(u32 id, T*& data)
|
||||
template<typename T>
|
||||
bool CheckId(u32 id, T*& data) const
|
||||
{
|
||||
return detail::CheckId(id,data,GetName());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue