mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-27 07:57:21 +00:00
f8f5b731f1
Allows the server to be run from a non-build directory. Also only read or write files relative to the build directory, regardless of where the server is run from
16 lines
270 B
C++
16 lines
270 B
C++
#pragma once
|
|
|
|
#ifndef __BINARYPATHFINDER__H__
|
|
#define __BINARYPATHFINDER__H__
|
|
|
|
#include <filesystem>
|
|
|
|
class BinaryPathFinder {
|
|
private:
|
|
static std::filesystem::path binaryDir;
|
|
public:
|
|
static std::filesystem::path GetBinaryDir();
|
|
};
|
|
|
|
#endif //!__BINARYPATHFINDER__H__
|