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

View File

@@ -4,18 +4,13 @@
// server saves and exits cleanly on every platform (Windows has no SIGTERM),
// and only kills it if it does not exit in time. Its output goes to a log file.
#include "Paths.h"
#include <cstdint>
#include <filesystem>
#include <string>
namespace bs {
// Per-user data folder: %APPDATA%\brandling-safari on Windows,
// $XDG_DATA_HOME/brandling-safari or ~/.local/share/brandling-safari elsewhere
// (the server uses the same folder for world.db). Created if missing.
std::filesystem::path userDataDir();
std::filesystem::path executableDir();
class LocalServer {
public:
LocalServer() = default;