1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +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

@@ -20,6 +20,7 @@
#include "../drawing/Drawing.h"
#include "../drawing/X8DrawingEngine.h"
#include "../localisation/Localisation.h"
#include "../platform/Platform2.h"
#include "../platform/platform.h"
#include "../util/Util.h"
#include "../world/Climate.h"
@@ -106,11 +107,8 @@ static std::string screenshot_get_directory()
static std::pair<rct2_date, rct2_time> screenshot_get_date_time()
{
rct2_date date;
platform_get_date_local(&date);
rct2_time time;
platform_get_time_local(&time);
auto date = Platform::GetDateLocal();
auto time = Platform::GetTimeLocal();
return { date, time };
}