mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-25 04:22:26 +00:00
Fix for windows hotfix [skip ci]
This commit is contained in:
parent
9e960b90bd
commit
15a70c7aa9
@ -12828,15 +12828,19 @@ void command_hotfix(Client *c, const Seperator *sep)
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
shared_memory_path = "shared_memory";
|
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";
|
shared_memory_path = "bin\\shared_memory.exe";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string hotfix_command;
|
||||||
if (hotfix_name.length() > 0) {
|
if (hotfix_name.length() > 0) {
|
||||||
if (system(StringFormat("\"%s\" -hotfix=%s", shared_memory_path.c_str(), hotfix_name.c_str()).c_str())) {}
|
hotfix_command = fmt::format("\"{}\" -hotfix={}", shared_memory_path, hotfix_name);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (system(StringFormat("\"%s\"", shared_memory_path.c_str()).c_str())) {}
|
hotfix_command = fmt::format("\"{}\"", shared_memory_path, hotfix_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LogInfo("Running hotfix command [{}]", hotfix_command);
|
||||||
|
if (system(hotfix_command.c_str())) {}
|
||||||
#else
|
#else
|
||||||
shared_memory_path = "./shared_memory";
|
shared_memory_path = "./shared_memory";
|
||||||
if (file_exists("./bin/shared_memory")) {
|
if (file_exists("./bin/shared_memory")) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user