mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-18 03:44:32 +01:00
Global: Fix some warnings.
This commit is contained in:
1 parent
9eccea2d5e
commit
bd1ed897cf
6 files changed
+23
-8
No files matched your search
@@ -176,7 +176,7 @@ u32 sceKernelLibcGettimeofday(u32 timeAddr, u32 tzAddr)
|
||||
std::string KernelTimeNowFormatted() {
|
||||
time_t emulatedTime = (time_t)start_time + (u32)(CoreTiming::GetGlobalTimeUs() / 1000000ULL);
|
||||
tm* timePtr = localtime(&emulatedTime);
|
||||
bool DST = timePtr->tm_isdst;
|
||||
bool DST = timePtr->tm_isdst != 0;
|
||||
u8 seconds = timePtr->tm_sec;
|
||||
u8 minutes = timePtr->tm_min;
|
||||
u8 hours = timePtr->tm_hour;
|
||||
@@ -187,4 +187,4 @@ std::string KernelTimeNowFormatted() {
|
||||
u16 years = timePtr->tm_year + 1900;
|
||||
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