Windows support

This commit is contained in:
Gabrieal Jimmy
2026-10-02 16:04:30 -05:00
parent 34fa21139f
commit d31689cf86
14 changed files with 242 additions and 57 deletions

21
shared/Paths.h Normal file
View File

@@ -0,0 +1,21 @@
#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