3#include "pixelbullet/core/platform_paths.h"
11namespace pixelbullet::platform
13enum class HostPlatform : uint8_t
20inline constexpr HostPlatform current_platform = HostPlatform::Windows;
21#elif defined(__linux__)
22inline constexpr HostPlatform current_platform = HostPlatform::Linux;
24#error "Unsupported platform"
28std::tm to_local_time(std::time_t value);
29std::tm to_utc_time(std::time_t value);
31inline std::string read_environment_variable(
const char* name)
33 if (
const char* value = std::getenv(name))
41inline std::filesystem::path platform_path_component(
const std::string_view windows_component,
const std::string_view linux_component)
44 (void)linux_component;
45 return std::filesystem::path(windows_component);
47 (void)windows_component;
48 return std::filesystem::path(linux_component);