Skip to content
This repository has been archived by the owner on Jul 27, 2020. It is now read-only.

Commit

Permalink
Fix vmap extraction. No longer directory dependent.
Browse files Browse the repository at this point in the history
Signed-off-by: AlterEgo <admin@projectskyfire.org>
  • Loading branch information
SkyFire committed Jul 2, 2017
1 parent f285b2c commit 6c09b56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/server/authserver/Main.cpp
Expand Up @@ -109,7 +109,7 @@ extern int main(int argc, char **argv)
sLog->outString(" \\ \\___ \\ \\ _'-\\ \\____ \\ \\ __\\ \\ \\ \\ __<\\ \\ __\\ ");
sLog->outString(" \\/\\_____\\ \\_\\ \\_\\/\\_____\\ \\_\\ \\ \\_\\ \\_\\ \\_\\ \\_____\\ ");
sLog->outString(" \\/_____/\\/_/\\/_/\\/_____/\\/_/ \\/_/\\/_/ /_/\\/_____/ ");
sLog->outString(" Project SkyFireEmu 2012(c) Open-sourced Game Emulation ");
sLog->outString(" Project SkyFireEmu 2017(c) Open-sourced Game Emulation ");
sLog->outString(" <http://www.projectskyfire.org/> \n");

sLog->outDetail("%s (Library: %s)", OPENSSL_VERSION_TEXT, SSLeay_version(SSLEAY_VERSION));
Expand Down
2 changes: 1 addition & 1 deletion src/server/worldserver/Master.cpp
Expand Up @@ -131,7 +131,7 @@ int Master::Run()
sLog->outString(" \\ \\___ \\ \\ _'-\\ \\____ \\ \\ __\\ \\ \\ \\ __<\\ \\ __\\ ");
sLog->outString(" \\/\\_____\\ \\_\\ \\_\\/\\_____\\ \\_\\ \\ \\_\\ \\_\\ \\_\\ \\_____\\ ");
sLog->outString(" \\/_____/\\/_/\\/_/\\/_____/\\/_/ \\/_/\\/_/ /_/\\/_____/ ");
sLog->outString(" Project SkyFireEmu 2012(c) Open-Sourced Game Emulation Project ");
sLog->outString(" Project SkyFireEmu 2017(c) Open-Sourced Game Emulation Project ");
sLog->outString(" <http://www.projectskyfire.org/> \n");

///- Worldserver PID file creation
Expand Down
16 changes: 2 additions & 14 deletions src/tools/vmap3_extractor/vmapexport.cpp
Expand Up @@ -267,21 +267,9 @@ void ParsMapFiles()
void getGamePath()
{
#ifdef _WIN32
HKEY key;
DWORD t, s;
LONG l;
s = sizeof(input_path);
memset(input_path, 0, s);
l = RegOpenKeyExA(HKEY_LOCAL_MACHINE, "SOFTWARE\\Blizzard Entertainment\\World of Warcraft", 0, KEY_QUERY_VALUE, &key);
l = RegQueryValueExA(key, "InstallPath", 0, &t, (LPBYTE)input_path, &s);
RegCloseKey(key);
if (strlen(input_path) > 0)
{
if (input_path[strlen(input_path) - 1] != '\\') strcat(input_path, "\\");
}
strcat(input_path, "Data\\");
strcpy(input_path,"Data\\");
#else
strcpy(input_path, "Data/");
strcpy(input_path,"Data/");
#endif
}

Expand Down

0 comments on commit 6c09b56

Please sign in to comment.