mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
Minor logging improvement, refresh gamescreen on deleted savedata
This commit is contained in:
1 parent
d26a4a62ba
commit
40a5cd1509
3 files changed
+8
-5
No files matched your search
@@ -1458,7 +1458,7 @@ bool SavedataParam::GetSize(SceUtilitySavedataParam *param) {
|
||||
}
|
||||
}
|
||||
|
||||
INFO_LOG(Log::sceUtility, "SectorSize: %d FreeSectors: %d FreeKB: %d neededKb: %d overwriteKb: %d",
|
||||
INFO_LOG(Log::sceUtility, "GETSIZE: SectorSize: %d FreeSectors: %d FreeKB: %d neededKb: %d overwriteKb: %d",
|
||||
param->sizeInfo->sectorSize, param->sizeInfo->freeSectors, param->sizeInfo->freeKB, param->sizeInfo->neededKB, param->sizeInfo->overwriteKB);
|
||||
|
||||
NotifyMemInfo(MemBlockFlags::WRITE, param->sizeInfo.ptr, sizeof(PspUtilitySavedataSizeInfo), "SavedataGetSize");
|
||||
|
||||
@@ -145,9 +145,12 @@ u64 MemoryStick_FreeSpace(std::string gameID) {
|
||||
realFreeSpace = memstickInitialFree - memstickCurrentUse;
|
||||
}
|
||||
}
|
||||
INFO_LOG(Log::IO, "Done calculating free disk space (%0.3f s)", time_now_d() - start);
|
||||
|
||||
return std::min(simulatedFreeSpace, realFreeSpace);
|
||||
u64 space = std::min(simulatedFreeSpace, realFreeSpace);
|
||||
|
||||
INFO_LOG(Log::IO, "Done calculating free disk space (%0.3f s): %llu", time_now_d() - start, (unsigned long long)space);
|
||||
|
||||
return space;
|
||||
}
|
||||
|
||||
void MemoryStick_NotifyWrite() {
|
||||
|
||||
+2
-2
@@ -548,17 +548,17 @@ void GameScreen::OnDeleteSaveData(UI::EventParams &e) {
|
||||
Path gamePath = gamePath_;
|
||||
screenManager()->push(
|
||||
new UI::MessagePopupScreen(di->T("Delete"), di->T("DeleteConfirmAll", "Do you really want to delete all\nyour save data for this game?"), trashAvailable ? di->T("Move to trash") : di->T("Delete"), di->T("Cancel"),
|
||||
[gamePath](bool yes) {
|
||||
[this, gamePath](bool yes) {
|
||||
if (yes) {
|
||||
std::shared_ptr<GameInfo> info_ = g_gameInfoCache->GetInfo(NULL, gamePath, GameInfoFlags::PARAM_SFO);
|
||||
info_->DeleteAllSaveData();
|
||||
info_->saveDataSize = 0;
|
||||
info_->installDataSize = 0;
|
||||
RecreateViews();
|
||||
}
|
||||
}));
|
||||
}
|
||||
}
|
||||
RecreateViews();
|
||||
}
|
||||
|
||||
void GameScreen::OnDeleteGame(UI::EventParams &e) {
|
||||
|
||||
Reference in new issue
Block a user