mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Warning fixes
This commit is contained in:
parent
355ec02055
commit
1a89c26dc0
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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_;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user