mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
More logging changes
This commit is contained in:
parent
70cb1104dc
commit
4582ee692a
2 changed files with 7 additions and 8 deletions
|
@ -1592,15 +1592,15 @@ int SavedataParam::SetPspParam(SceUtilitySavedataParam *param)
|
||||||
PSPFileInfo info = GetSaveInfo(fileDataDir);
|
PSPFileInfo info = GetSaveInfo(fileDataDir);
|
||||||
if (info.exists) {
|
if (info.exists) {
|
||||||
SetFileInfo(realCount, info, thisSaveName);
|
SetFileInfo(realCount, info, thisSaveName);
|
||||||
DEBUG_LOG(Log::sceUtility, "Save data exists: %s = %s", thisSaveName.c_str(), fileDataDir.c_str());
|
INFO_LOG(Log::sceUtility, "Save data exists: %s = %s", thisSaveName.c_str(), fileDataDir.c_str());
|
||||||
realCount++;
|
realCount++;
|
||||||
} else {
|
} else {
|
||||||
if (listEmptyFile) {
|
if (listEmptyFile) {
|
||||||
ClearFileInfo(saveDataList[realCount], thisSaveName);
|
ClearFileInfo(saveDataList[realCount], thisSaveName);
|
||||||
DEBUG_LOG(Log::sceUtility, "Listing missing save data: %s = %s", thisSaveName.c_str(), fileDataDir.c_str());
|
INFO_LOG(Log::sceUtility, "Listing missing save data: %s = %s", thisSaveName.c_str(), fileDataDir.c_str());
|
||||||
realCount++;
|
realCount++;
|
||||||
} else {
|
} else {
|
||||||
DEBUG_LOG(Log::sceUtility, "Save data not found: %s = %s", thisSaveName.c_str(), fileDataDir.c_str());
|
INFO_LOG(Log::sceUtility, "Save data not found: %s = %s", thisSaveName.c_str(), fileDataDir.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1620,14 +1620,14 @@ int SavedataParam::SetPspParam(SceUtilitySavedataParam *param)
|
||||||
PSPFileInfo info = GetSaveInfo(fileDataDir);
|
PSPFileInfo info = GetSaveInfo(fileDataDir);
|
||||||
if (info.exists) {
|
if (info.exists) {
|
||||||
SetFileInfo(0, info, GetSaveName(param));
|
SetFileInfo(0, info, GetSaveName(param));
|
||||||
DEBUG_LOG(Log::sceUtility, "Save data exists: %s = %s", GetSaveName(param).c_str(), fileDataDir.c_str());
|
INFO_LOG(Log::sceUtility, "Save data exists: %s = %s", GetSaveName(param).c_str(), fileDataDir.c_str());
|
||||||
saveNameListDataCount = 1;
|
saveNameListDataCount = 1;
|
||||||
} else {
|
} else {
|
||||||
if (listEmptyFile) {
|
if (listEmptyFile) {
|
||||||
ClearFileInfo(saveDataList[0], GetSaveName(param));
|
ClearFileInfo(saveDataList[0], GetSaveName(param));
|
||||||
DEBUG_LOG(Log::sceUtility, "Listing missing save data: %s = %s", GetSaveName(param).c_str(), fileDataDir.c_str());
|
INFO_LOG(Log::sceUtility, "Listing missing save data: %s = %s", GetSaveName(param).c_str(), fileDataDir.c_str());
|
||||||
} else {
|
} else {
|
||||||
DEBUG_LOG(Log::sceUtility, "Save data not found: %s = %s", GetSaveName(param).c_str(), fileDataDir.c_str());
|
INFO_LOG(Log::sceUtility, "Save data not found: %s = %s", GetSaveName(param).c_str(), fileDataDir.c_str());
|
||||||
}
|
}
|
||||||
saveNameListDataCount = 0;
|
saveNameListDataCount = 0;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -866,7 +866,6 @@ static u32 sceUtilitySetSystemParamInt(u32 id, u32 value)
|
||||||
|
|
||||||
static u32 sceUtilityGetSystemParamInt(u32 id, u32 destaddr)
|
static u32 sceUtilityGetSystemParamInt(u32 id, u32 destaddr)
|
||||||
{
|
{
|
||||||
DEBUG_LOG(Log::sceUtility,"sceUtilityGetSystemParamInt(%i, %08x)", id,destaddr);
|
|
||||||
u32 param = 0;
|
u32 param = 0;
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case PSP_SYSTEMPARAM_ID_INT_ADHOC_CHANNEL:
|
case PSP_SYSTEMPARAM_ID_INT_ADHOC_CHANNEL:
|
||||||
|
@ -917,8 +916,8 @@ static u32 sceUtilityGetSystemParamInt(u32 id, u32 destaddr)
|
||||||
return PSP_SYSTEMPARAM_RETVAL_FAIL;
|
return PSP_SYSTEMPARAM_RETVAL_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
INFO_LOG(Log::sceUtility, "sceUtilityGetSystemParamInt(%i, %08x <- %08x)", id, destaddr, param);
|
||||||
Memory::Write_U32(param, destaddr);
|
Memory::Write_U32(param, destaddr);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue