Windows support
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user