mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-24 19:52:37 +01:00
Minor const correctness
This commit is contained in:
parent
874da27599
commit
c00850c4c5
@ -401,7 +401,7 @@ struct PPCdouble
|
||||
return (u64&)_double;
|
||||
}
|
||||
|
||||
u32 GetZerosCount()
|
||||
u32 GetZerosCount() const
|
||||
{
|
||||
u32 ret;
|
||||
u32 dd = frac >> 32;
|
||||
|
@ -30,7 +30,7 @@ struct RSXVertexData
|
||||
RSXVertexData();
|
||||
|
||||
void Reset();
|
||||
bool IsEnabled() { return size > 0; }
|
||||
bool IsEnabled() const { return size > 0; }
|
||||
void Load(u32 start, u32 count);
|
||||
|
||||
u32 GetTypeSize();
|
||||
|
@ -235,7 +235,7 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
u64 GetSize()
|
||||
u64 GetSize() const
|
||||
{
|
||||
return m_info.size;
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ public:
|
||||
CellKbData& GetData(const u32 keyboard) { return m_keyboard_handler->GetData(keyboard); }
|
||||
CellKbConfig& GetConfig(const u32 keyboard) { return m_keyboard_handler->GetConfig(keyboard); }
|
||||
|
||||
bool IsInited() { return m_inited; }
|
||||
bool IsInited() const { return m_inited; }
|
||||
|
||||
//private:
|
||||
//DECLARE_EVENT_TABLE();
|
||||
|
@ -19,7 +19,7 @@ public:
|
||||
CellMouseData& GetData(const u32 mouse) { return m_mouse_handler->GetData(mouse); }
|
||||
CellMouseRawData& GetRawData(const u32 mouse) { return m_mouse_handler->GetRawData(mouse); }
|
||||
|
||||
bool IsInited() { return m_inited; }
|
||||
bool IsInited() const { return m_inited; }
|
||||
|
||||
//private:
|
||||
//DECLARE_EVENT_TABLE();
|
||||
|
@ -18,7 +18,7 @@ public:
|
||||
PadInfo& GetInfo() { return m_pad_handler->GetInfo(); }
|
||||
Array<Button>& GetButtons(const u32 pad) { return m_pad_handler->GetButtons(pad); }
|
||||
|
||||
bool IsInited() { return m_inited; }
|
||||
bool IsInited() const { return m_inited; }
|
||||
|
||||
//private:
|
||||
//DECLARE_EVENT_TABLE();
|
||||
|
@ -143,7 +143,7 @@ public:
|
||||
return res;
|
||||
}
|
||||
|
||||
u32 count()
|
||||
u32 count() const
|
||||
{
|
||||
return buf_count;
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ struct Elf_Ehdr
|
||||
|
||||
bool CheckMagic() const { return e_magic == 0x7F454C46; }
|
||||
|
||||
ElfClass GetClass()
|
||||
ElfClass GetClass() const
|
||||
{
|
||||
switch(e_class)
|
||||
{
|
||||
|
@ -193,11 +193,11 @@ protected:
|
||||
public:
|
||||
virtual bool LoadInfo() { return false; }
|
||||
virtual bool LoadData(u64 offset = 0) { return false; }
|
||||
Elf_Machine GetMachine() { return machine; }
|
||||
Elf_Machine GetMachine() const { return machine; }
|
||||
|
||||
u32 GetEntry() { return entry; }
|
||||
u32 GetMinAddr() { return min_addr; }
|
||||
u32 GetMaxAddr() { return max_addr; }
|
||||
u32 GetEntry() const { return entry; }
|
||||
u32 GetMinAddr() const { return min_addr; }
|
||||
u32 GetMaxAddr() const { return max_addr; }
|
||||
};
|
||||
|
||||
class Loader : public LoaderBase
|
||||
|
Loading…
Reference in New Issue
Block a user