2017-06-01 21:55:10 +02:00
|
|
|
#pragma region Copyright (c) 2014-2017 OpenRCT2 Developers
|
2017-04-01 14:38:52 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
|
|
|
*
|
|
|
|
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
|
|
|
|
* For more information, visit https://github.com/OpenRCT2/OpenRCT2
|
|
|
|
*
|
|
|
|
* OpenRCT2 is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* A full copy of the GNU General Public License can be found in licence.txt
|
|
|
|
*****************************************************************************/
|
|
|
|
#pragma endregion
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-01-07 21:27:30 +01:00
|
|
|
#include <ctime>
|
2017-11-28 21:57:34 +01:00
|
|
|
#include <string>
|
2017-04-01 14:38:52 +02:00
|
|
|
#include "../common.h"
|
|
|
|
|
2017-11-28 21:57:34 +01:00
|
|
|
enum class SPECIAL_FOLDER
|
|
|
|
{
|
|
|
|
USER_CACHE,
|
|
|
|
USER_CONFIG,
|
|
|
|
USER_DATA,
|
|
|
|
USER_HOME,
|
|
|
|
};
|
|
|
|
|
2017-04-01 14:38:52 +02:00
|
|
|
namespace Platform
|
|
|
|
{
|
|
|
|
uint32 GetTicks();
|
2017-11-28 21:57:34 +01:00
|
|
|
std::string GetEnvironmentVariable(const std::string &name);
|
|
|
|
std::string GetFolderPath(SPECIAL_FOLDER folder);
|
|
|
|
std::string GetInstallPath();
|
2018-01-21 03:13:32 +01:00
|
|
|
std::string GetDocsPath();
|
2017-12-02 00:48:46 +01:00
|
|
|
std::string GetCurrentExecutablePath();
|
2017-12-01 01:54:03 +01:00
|
|
|
|
|
|
|
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__FreeBSD__)
|
|
|
|
std::string GetEnvironmentPath(const char * name);
|
|
|
|
std::string GetHomePath();
|
|
|
|
#endif
|
2018-01-07 21:27:30 +01:00
|
|
|
|
|
|
|
std::string FormatShortDate(std::time_t timestamp);
|
|
|
|
std::string FormatTime(std::time_t timestamp);
|
2017-04-01 14:38:52 +02:00
|
|
|
}
|