From 5afe605b2ffeca772ba6d80d0f22b1eedc8ebf23 Mon Sep 17 00:00:00 2001 From: b03605079 Date: Sun, 19 Apr 2015 17:10:06 +0800 Subject: [PATCH] Update functions.cpp JP version path correction. --- xiloader/functions.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xiloader/functions.cpp b/xiloader/functions.cpp index 8f66261..c33db6e 100644 --- a/xiloader/functions.cpp +++ b/xiloader/functions.cpp @@ -77,11 +77,12 @@ namespace xiloader unsigned int functions::GetRegistryLanguage(int lang) { const char szLanguageTags[4][255] = { { "" }, { "US" }, { "EU" }, { "EU" } }; + const char szLanguageTags2[4][255] = { { "" }, { "Enix" }, { "Enix" }, { "Enix" } }; char szRegistryPath[MAX_PATH] = { 0 }; HKEY hKey = NULL; - sprintf_s(szRegistryPath, MAX_PATH, "SOFTWARE\\PlayOnline%s\\SquareEnix\\PlayOnlineViewer\\Settings", szLanguageTags[lang]); + sprintf_s(szRegistryPath, MAX_PATH, "SOFTWARE\\PlayOnline%s\\Square%s\\PlayOnlineViewer\\Settings", szLanguageTags[lang], szLanguageTags2[lang]); if (!(::RegOpenKeyExA(HKEY_LOCAL_MACHINE, szRegistryPath, 0, KEY_QUERY_VALUE | KEY_WOW64_32KEY, &hKey) == ERROR_SUCCESS)) return 1;