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:
@@ -50,6 +50,11 @@ if ($Config{osname} =~ /Win|MS/i) {
|
||||
$OS = "Windows";
|
||||
}
|
||||
|
||||
if (-e "../eqemu_config.json") {
|
||||
print "[Info] Config is up one level, let's set current directory up one level...\n";
|
||||
chdir("../");
|
||||
}
|
||||
|
||||
#############################################
|
||||
# internet check
|
||||
#############################################
|
||||
@@ -83,6 +88,8 @@ if (-d "bin") {
|
||||
$bin_dir = "bin/";
|
||||
}
|
||||
|
||||
my $world_path = get_world_path();
|
||||
|
||||
#############################################
|
||||
# run routines
|
||||
#############################################
|
||||
@@ -540,14 +547,6 @@ sub do_installer_routines
|
||||
print `"$path" --host $host --user $root_user --password="$root_password" -N -B -e "FLUSH PRIVILEGES"`;
|
||||
}
|
||||
|
||||
my $world_path = "world";
|
||||
if (-e "bin/world") {
|
||||
$world_path = "bin/world";
|
||||
}
|
||||
elsif (-e "bin/world.exe") {
|
||||
$world_path = "bin/world.exe";
|
||||
}
|
||||
|
||||
#::: Get Binary DB version
|
||||
if ($OS eq "Windows") {
|
||||
@db_version = split(': ', `"$world_path" db_version`);
|
||||
@@ -592,15 +591,6 @@ sub check_for_input
|
||||
|
||||
sub check_for_world_bootup_database_update
|
||||
{
|
||||
|
||||
my $world_path = "world";
|
||||
if (-e "bin/world") {
|
||||
$world_path = "bin/world";
|
||||
}
|
||||
elsif (-e "bin/world.exe") {
|
||||
$world_path = "bin/world.exe";
|
||||
}
|
||||
|
||||
$binary_database_version = 0;
|
||||
$local_database_version = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user