mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
* Push up branch for testing * Path manager * Tweaks * Changes * More path work * Update paths for eqemu_server.pl * More path work * Import and export client files * Path remove * More path work * Update eqemu_config.h * Fix tests * Tests disable temp * Update eqemu_config.h * Update .drone.yml * Hook tests back up * Update main.cpp * Platform tests * Fix include * Use std::filesystem on windows * Fix IPCMutex name on windows * std::filesystem changes * Update path_manager.cpp * Explicit string cast * Explicit string cast * Update path_manager.cpp * Windows fixes * Mapped files * Relative fixes * Use relative paths off of cwd * Update Debian image to Debian 11 (updates GCC) Co-authored-by: hg <4683435+hgtw@users.noreply.github.com>
36 lines
977 B
C++
36 lines
977 B
C++
#ifndef EQEMU_PATH_MANAGER_H
|
|
#define EQEMU_PATH_MANAGER_H
|
|
|
|
|
|
#include <string>
|
|
|
|
class PathManager {
|
|
public:
|
|
void LoadPaths();
|
|
|
|
[[nodiscard]] const std::string &GetLogPath() const;
|
|
[[nodiscard]] const std::string &GetLuaModsPath() const;
|
|
[[nodiscard]] const std::string &GetLuaModulesPath() const;
|
|
[[nodiscard]] const std::string &GetMapsPath() const;
|
|
[[nodiscard]] const std::string &GetPatchPath() const;
|
|
[[nodiscard]] const std::string &GetPluginsPath() const;
|
|
[[nodiscard]] const std::string &GetQuestsPath() const;
|
|
[[nodiscard]] const std::string &GetServerPath() const;
|
|
[[nodiscard]] const std::string &GetSharedMemoryPath() const;
|
|
|
|
private:
|
|
std::string m_log_path;
|
|
std::string m_lua_mods_path;
|
|
std::string m_lua_modules_path;
|
|
std::string m_maps_path;
|
|
std::string m_patch_path;
|
|
std::string m_plugins_path;
|
|
std::string m_quests_path;
|
|
std::string m_server_path;
|
|
std::string m_shared_memory_path;
|
|
};
|
|
|
|
extern PathManager path;
|
|
|
|
#endif //EQEMU_PATH_MANAGER_H
|