mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Just some constification
This commit is contained in:
1 parent
4989ec61d9
commit
95cf9c2e28
7 files changed
+15
-20
No files matched your search
+1
-1
@@ -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
@@ -632,7 +632,7 @@ public:
|
||||
|
||||
void ResetControlLayout();
|
||||
|
||||
void GetReportingInfo(UrlEncoder &data);
|
||||
void GetReportingInfo(UrlEncoder &data) const;
|
||||
|
||||
bool IsPortrait() const;
|
||||
int NextValidBackend();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user