Warning fixes

This commit is contained in:
Henrik Rydgård 2024-10-03 18:18:02 +02:00
parent 355ec02055
commit 1a89c26dc0
3 changed files with 3 additions and 3 deletions

View File

@ -337,7 +337,7 @@ bool SavedataParam::Delete(SceUtilitySavedataParam* param, int saveId) {
std::string dirPath = GetSaveFilePath(param, GetSaveDir(saveId)); std::string dirPath = GetSaveFilePath(param, GetSaveDir(saveId));
if (dirPath.size() == 0) { if (dirPath.size() == 0) {
ERROR_LOG(Log::sceUtility, "GetSaveFilePath (%.*s) returned empty - cannot delete save directory. Might already be deleted?", sizeof(param->gameName), param->gameName); ERROR_LOG(Log::sceUtility, "GetSaveFilePath (%.*s) returned empty - cannot delete save directory. Might already be deleted?", (int)sizeof(param->gameName), param->gameName);
return false; return false;
} }

View File

@ -31,7 +31,7 @@ constexpr int TOTAL_MAPPABLE_IRREGS = 256;
// Arbitrary - increase if your backend has more. // Arbitrary - increase if your backend has more.
constexpr int TOTAL_POSSIBLE_NATIVEREGS = 128; constexpr int TOTAL_POSSIBLE_NATIVEREGS = 128;
typedef int8_t IRNativeReg; typedef int8_t IRNativeReg; // invalid value is -1
constexpr IRReg IRREG_INVALID = 255; constexpr IRReg IRREG_INVALID = 255;

View File

@ -265,7 +265,7 @@ X64Reg X64IRRegCache::GetAndLockTempFPR() {
void X64IRRegCache::ReserveAndLockXGPR(Gen::X64Reg r) { void X64IRRegCache::ReserveAndLockXGPR(Gen::X64Reg r) {
IRNativeReg nreg = GPRToNativeReg(r); IRNativeReg nreg = GPRToNativeReg(r);
if (nr[nreg].mipsReg != -1) if (nr[nreg].mipsReg != IRREG_INVALID)
FlushNativeReg(nreg); FlushNativeReg(nreg);
nr[r].tempLockIRIndex = irIndex_; nr[r].tempLockIRIndex = irIndex_;
} }