Skip to content

Commit 7fafc7f

Browse files
committed
Change naming of PoE2 suffix
1 parent 6feb94f commit 7fafc7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Launcher.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,15 @@ bool InsertLaunchLua(std::vector<std::wstring> &commandLine, std::string &firstL
199199
}
200200

201201
// Check for the registry key left by the installer
202-
// HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Path of Building Community[-PoE2]\InstallLocation
202+
// HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Path of Building Community[ (PoE2)]\InstallLocation
203203
{
204204
DWORD dwType = 0;
205205
DWORD dwSize = MAX_PATH;
206206
wchar_t wszValue[MAX_PATH]{};
207207
#ifndef GAMEVERSION_2
208208
DWORD dwStatus = RegGetValue(HKEY_CURRENT_USER, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Path of Building Community", L"InstallLocation", RRF_RT_REG_SZ, &dwType, wszValue, &dwSize);
209209
#else
210-
DWORD dwStatus = RegGetValue(HKEY_CURRENT_USER, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Path of Building Community-PoE2", L"InstallLocation", RRF_RT_REG_SZ, &dwType, wszValue, &dwSize);
210+
DWORD dwStatus = RegGetValue(HKEY_CURRENT_USER, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Path of Building Community (PoE2)", L"InstallLocation", RRF_RT_REG_SZ, &dwType, wszValue, &dwSize);
211211
#endif
212212
if (dwStatus == ERROR_SUCCESS && dwSize > sizeof(wchar_t))
213213
{
@@ -229,7 +229,7 @@ bool InsertLaunchLua(std::vector<std::wstring> &commandLine, std::string &firstL
229229
#ifndef GAMEVERSION_2
230230
basePath += L"\\Path of Building Community\\";
231231
#else
232-
basePath += L"\\Path of Building Community-PoE2\\";
232+
basePath += L"\\Path of Building Community (PoE2)\\";
233233
#endif
234234
if (FindLaunchLua(basePath, commandLine, firstLine))
235235
{

0 commit comments

Comments
 (0)