Minor FS logging

This commit is contained in:
Henrik Rydgård committed 2024-12-29 09:31:50 +01:00
1 parent 70cddec493
commit bb2b214d5e
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -250,7 +250,7 @@ std::vector<File::FileInfo> Android_ListContentUri(const std::string &uri, const
} else if (ParseFileInfo(line, &info)) {
// We can just reconstruct the URI.
info.fullName = Path(uri) / info.name;
INFO_LOG(Log::FileSystem, "%s", info.name.c_str());
// INFO_LOG(Log::FileSystem, "%s", info.name.c_str());
items.push_back(info);
}
}
+3
View File
@@ -31,6 +31,7 @@
#include "Core/HW/MemoryStick.h"
#include "Core/System.h"
#include "Common/CommonTypes.h"
#include "Common/TimeUtil.h"
#include "Common/Thread/Promise.h"
// MS and FatMS states.
@@ -108,6 +109,7 @@ static uint64_t ComputeSizeOfSavedataForGame(const Path &saveFolder, const std::
}
u64 MemoryStick_FreeSpace(std::string gameID) {
double start = time_now_d();
INFO_LOG(Log::IO, "Calculating free disk space (%s)", gameID.c_str());
const CompatFlags &flags = PSP_CoreParameter().compat.flags();
@@ -143,6 +145,7 @@ 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);
}