1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00

Part of #11437: Move GetDateLocal and GetTimeLocal in Platform2.h

This commit is contained in:
frutiemax
2020-06-28 15:46:14 -04:00
committed by GitHub
parent bdbf12892b
commit 5ae592ec79
7 changed files with 38 additions and 59 deletions

View File

@@ -38,6 +38,7 @@
#include "object/ObjectList.h"
#include "peep/Peep.h"
#include "peep/Staff.h"
#include "platform/Platform2.h"
#include "platform/platform.h"
#include "rct1/RCT1.h"
#include "ride/Ride.h"
@@ -766,10 +767,8 @@ void game_autosave()
}
// Retrieve current time
rct2_date currentDate;
platform_get_date_local(&currentDate);
rct2_time currentTime;
platform_get_time_local(&currentTime);
auto currentDate = Platform::GetDateLocal();
auto currentTime = Platform::GetTimeLocal();
utf8 timeName[44];
snprintf(