mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[File Paths] Implement Path Manager (#2440)
* 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>
This commit is contained in:
+3
-3
@@ -19,7 +19,7 @@
|
||||
#include "../common/strings.h"
|
||||
#include "../common/say_link.h"
|
||||
#include "../common/net/eqstream.h"
|
||||
#include "../common/file_util.h"
|
||||
#include "../common/file.h"
|
||||
#include "../common/repositories/dynamic_zones_repository.h"
|
||||
|
||||
#include "data_bucket.h"
|
||||
@@ -811,7 +811,7 @@ void command_hotfix(Client *c, const Seperator *sep)
|
||||
|
||||
#ifdef WIN32
|
||||
shared_memory_path = "shared_memory";
|
||||
if (file_exists("bin/shared_memory.exe")) {
|
||||
if (File::Exists("bin/shared_memory.exe")) {
|
||||
shared_memory_path = "bin\\shared_memory.exe";
|
||||
}
|
||||
|
||||
@@ -827,7 +827,7 @@ void command_hotfix(Client *c, const Seperator *sep)
|
||||
if (system(hotfix_command.c_str())) {}
|
||||
#else
|
||||
shared_memory_path = "./shared_memory";
|
||||
if (file_exists("./bin/shared_memory")) {
|
||||
if (File::Exists("./bin/shared_memory")) {
|
||||
shared_memory_path = "./bin/shared_memory";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user