mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 02:33:43 +01:00
Minor FS logging
This commit is contained in:
1 parent
70cddec493
commit
bb2b214d5e
2 files changed
+4
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user