mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 19:43:06 +01:00
Remove platform_get_{date,time}_utc()
This commit is contained in:
@@ -42,33 +42,6 @@
|
||||
|
||||
static utf8 _userDataDirectoryPath[MAX_PATH] = { 0 };
|
||||
|
||||
void platform_get_date_utc(rct2_date* out_date)
|
||||
{
|
||||
assert(out_date != nullptr);
|
||||
time_t rawtime;
|
||||
struct tm* timeinfo;
|
||||
struct tm buf;
|
||||
time(&rawtime);
|
||||
timeinfo = gmtime_r(&rawtime, &buf);
|
||||
out_date->day = timeinfo->tm_mday;
|
||||
out_date->month = timeinfo->tm_mon + 1;
|
||||
out_date->year = timeinfo->tm_year + 1900;
|
||||
out_date->day_of_week = timeinfo->tm_wday;
|
||||
}
|
||||
|
||||
void platform_get_time_utc(rct2_time* out_time)
|
||||
{
|
||||
assert(out_time != nullptr);
|
||||
time_t rawtime;
|
||||
struct tm* timeinfo;
|
||||
struct tm buf;
|
||||
time(&rawtime);
|
||||
timeinfo = gmtime_r(&rawtime, &buf);
|
||||
out_time->second = timeinfo->tm_sec;
|
||||
out_time->minute = timeinfo->tm_min;
|
||||
out_time->hour = timeinfo->tm_hour;
|
||||
}
|
||||
|
||||
bool platform_directory_exists(const utf8* path)
|
||||
{
|
||||
struct stat dirinfo;
|
||||
|
||||
@@ -85,8 +85,6 @@ struct file_dialog_desc
|
||||
void platform_update_palette(const uint8_t* colours, int32_t start_index, int32_t num_colours);
|
||||
void platform_toggle_windowed_mode();
|
||||
void platform_refresh_video(bool recreate_window);
|
||||
void platform_get_date_utc(rct2_date* out_date);
|
||||
void platform_get_time_utc(rct2_time* out_time);
|
||||
|
||||
// Platform specific definitions
|
||||
bool platform_directory_exists(const utf8* path);
|
||||
|
||||
Reference in New Issue
Block a user