Files
dusklight/mods/randomizer/generator/utility/platform.hpp
T
2026-07-27 22:33:03 -07:00

35 lines
580 B
C++

#pragma once
#include <string>
#ifdef DEVKITPRO
#define PLATFORM_DKP
#include "../utility/path.hpp"
#elif defined(_MSC_VER)
#define PLATFORM_MSVC
#elif defined(__GNUC__) || defined(__GNUG__)
#define PLATFORM_GCC
#elif defined(__clang__)
#define PLATFORM_CLANG
#else
#error UNKNOWN PLATFORM
#endif
namespace randomizer::utility::platform
{
void Log(const std::string& str);
bool Init();
bool IsRunning();
void waitForPlatformStop();
void Shutdown();
#ifdef DEVKITPRO
bool mountDeviceAndConvertPath(fspath& path);
#endif
}