From 32aede1a82610560be5a3a92ea519a05afce4575 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Sun, 8 Jul 2012 17:35:39 +0200 Subject: [PATCH] [12075] Don't check registry for game folder on windows, use relative "Data" dir, similar to linux. Fixes annoyance when you have multiple wow clients and building vmaps fails for reason that extractor takes path from wrong client even though it is located inside the correct directory Signed-off-by: stfx --- .../vmap_extractor_v3/vmapextract/vmapexport.cpp | 15 +-------------- src/shared/revision_nr.h | 2 +- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/contrib/vmap_extractor_v3/vmapextract/vmapexport.cpp b/contrib/vmap_extractor_v3/vmapextract/vmapexport.cpp index 12a028ce8..3d88b1de5 100644 --- a/contrib/vmap_extractor_v3/vmapextract/vmapexport.cpp +++ b/contrib/vmap_extractor_v3/vmapextract/vmapexport.cpp @@ -247,20 +247,7 @@ void ParsMapFiles() void getGamePath() { #ifdef _WIN32 - HKEY key; - DWORD t,s; - LONG l; - s = sizeof(input_path); - memset(input_path,0,s); - l = RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\Blizzard Entertainment\\World of Warcraft",0,KEY_QUERY_VALUE,&key); - //l = RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\Blizzard Entertainment\\Burning Crusade Closed Beta",0,KEY_QUERY_VALUE,&key); - l = RegQueryValueEx(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/"); #endif diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index b830f455b..723581497 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "12074" + #define REVISION_NR "12075" #endif // __REVISION_NR_H__