mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 10:49:05 +02:00
Small changes. Thx [Unknown]
This commit is contained in:
1 parent
aba4a4dfdb
commit
825e100614
1 file changed
+2
-2
@@ -174,7 +174,7 @@ u32 sceKernelLibcGettimeofday(u32 timeAddr, u32 tzAddr)
|
||||
}
|
||||
|
||||
std::string KernelTimeNowFormatted() {
|
||||
time_t emulatedTime = (u32)start_time + (u32)(CoreTiming::GetGlobalTimeUs() / 1000000ULL);
|
||||
time_t emulatedTime = (time_t)start_time + (u32)(CoreTiming::GetGlobalTimeUs() / 1000000ULL);
|
||||
tm* timePtr = localtime(&emulatedTime);
|
||||
bool DST = timePtr->tm_isdst;
|
||||
u8 seconds = timePtr->tm_sec;
|
||||
@@ -185,6 +185,6 @@ std::string KernelTimeNowFormatted() {
|
||||
u8 days = timePtr->tm_mday;
|
||||
u8 months = timePtr->tm_mon + 1;
|
||||
u16 years = timePtr->tm_year + 1900;
|
||||
std::string timestamp = StringFromFormat("%04d-%02d-%02d %02d-%02d-%02d", years, months, days, hours, minutes, seconds).c_str();
|
||||
std::string timestamp = StringFromFormat("%04d-%02d-%02d %02d-%02d-%02d", years, months, days, hours, minutes, seconds);
|
||||
return timestamp;
|
||||
}
|
||||
Reference in new issue
Block a user