Just some constification

This commit is contained in:
Henrik Rydgård committed 2025-03-03 13:59:42 +01:00
1 parent 4989ec61d9
commit 95cf9c2e28
7 files changed
+15 -20

No files matched your search

+1 -1
View File
@@ -2015,7 +2015,7 @@ void Config::ResetControlLayout() {
g_Config.fRightStickHeadScale = 1.0f;
}
void Config::GetReportingInfo(UrlEncoder &data) {
void Config::GetReportingInfo(UrlEncoder &data) const {
for (size_t i = 0; i < numSections; ++i) {
const std::string prefix = std::string("config.") + sections[i].section;
for (size_t j = 0; j < sections[i].settingsCount; j++) {
+1 -1
View File
@@ -632,7 +632,7 @@ public:
void ResetControlLayout();
void GetReportingInfo(UrlEncoder &data);
void GetReportingInfo(UrlEncoder &data) const;
bool IsPortrait() const;
int NextValidBackend();
+1 -1
View File
@@ -205,7 +205,7 @@ struct GPUDebugVertex {
class GPUDebugInterface {
public:
virtual ~GPUDebugInterface() {}
virtual ~GPUDebugInterface() = default;
virtual bool GetCurrentDisplayList(DisplayList &list) = 0;
virtual int GetCurrentPrimCount() = 0;
virtual std::vector<DisplayList> ActiveDisplayLists() = 0;
+5 -5
View File
@@ -42,7 +42,7 @@ const static u8 textureRelatedCmds[] = {
GE_CMD_TEXFLUSH, GE_CMD_TEXSYNC,
};
void GPUBreakpoints::Init() {
GPUBreakpoints::GPUBreakpoints() {
ClearAllBreakpoints();
nonTextureCmds.clear();
@@ -268,20 +268,20 @@ bool GPUBreakpoints::IsRenderTargetBreakpoint(u32 addr) {
return breakRenderTargets.find(addr) != breakRenderTargets.end();
}
bool GPUBreakpoints::IsOpBreakpoint(u32 op, bool &temp) {
bool GPUBreakpoints::IsOpBreakpoint(u32 op, bool &temp) const {
return IsCmdBreakpoint(op >> 24, temp);
}
bool GPUBreakpoints::IsOpBreakpoint(u32 op) {
bool GPUBreakpoints::IsOpBreakpoint(u32 op) const {
return IsCmdBreakpoint(op >> 24);
}
bool GPUBreakpoints::IsCmdBreakpoint(u8 cmd, bool &temp) {
bool GPUBreakpoints::IsCmdBreakpoint(u8 cmd, bool &temp) const {
temp = breakCmdsTemp[cmd];
return breakCmds[cmd];
}
bool GPUBreakpoints::IsCmdBreakpoint(u8 cmd) {
bool GPUBreakpoints::IsCmdBreakpoint(u8 cmd) const {
return breakCmds[cmd];
}
+5 -10
View File
@@ -29,17 +29,16 @@ struct GECmdInfo;
class GPUBreakpoints {
public:
GPUBreakpoints() {
Init();
}
void Init();
GPUBreakpoints();
bool IsBreakpoint(u32 pc, u32 op);
bool IsAddressBreakpoint(u32 addr, bool &temp);
bool IsAddressBreakpoint(u32 addr);
bool IsCmdBreakpoint(u8 cmd, bool &temp);
bool IsCmdBreakpoint(u8 cmd);
bool IsCmdBreakpoint(u8 cmd, bool &temp) const;
bool IsCmdBreakpoint(u8 cmd) const;
bool IsOpBreakpoint(u32 op, bool &temp) const;
bool IsOpBreakpoint(u32 op) const;
bool IsTextureBreakpoint(u32 addr, bool &temp);
bool IsTextureBreakpoint(u32 addr);
bool IsRenderTargetBreakpoint(u32 addr, bool &temp);
@@ -69,10 +68,6 @@ public:
void ClearAllBreakpoints();
void ClearTempBreakpoints();
bool IsOpBreakpoint(u32 op, bool &temp);
bool IsOpBreakpoint(u32 op);
bool HasBreakpoints() const {
return hasBreakpoints_;
}
+1 -1
View File
@@ -370,7 +370,7 @@ public:
return -1;
}
virtual void GetReportingInfo(std::string &primaryInfo, std::string &fullInfo) {
virtual void GetReportingInfo(std::string &primaryInfo, std::string &fullInfo) const {
primaryInfo = reportingPrimaryInfo_;
fullInfo = reportingFullInfo_;
}
+1 -1
View File
@@ -156,7 +156,7 @@ public:
void CheckDisplayResized() override;
void CheckConfigChanged() override;
void GetReportingInfo(std::string &primaryInfo, std::string &fullInfo) override {
void GetReportingInfo(std::string &primaryInfo, std::string &fullInfo) const override {
primaryInfo = "Software";
fullInfo = "Software";
}