Files
Gabrieal Jimmy d31689cf86 Windows support
2026-10-02 16:04:30 -05:00

22 lines
733 B
C++

#pragma once
// Where things live on disk.
//
// Assets: a release package keeps them next to the executables
// (`<exe dir>/assets` for the game, `<exe dir>/engine` for the engine's shaders,
// fonts, textures and models); a development build falls back to the source
// checkout paths baked in by CMake (BS_ASSET_DIR / HD2D_ENGINE_ASSET_DIR).
#include <filesystem>
#include <string>
namespace bs {
std::filesystem::path executableDir();
// %APPDATA%\brandling-safari on Windows, $XDG_DATA_HOME/brandling-safari or
// ~/.local/share/brandling-safari elsewhere. Created if missing.
std::filesystem::path userDataDir();
// Game asset root (contains characters/manifest.json).
const std::string& gameAssetDir();
} // namespace bs