Skip to content

Commit

Permalink
Change naming of PoE2 suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wires77 committed Jan 27, 2025
1 parent 6feb94f commit 7fafc7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Launcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,15 @@ bool InsertLaunchLua(std::vector<std::wstring> &commandLine, std::string &firstL
}

// Check for the registry key left by the installer
// HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Path of Building Community[-PoE2]\InstallLocation
// HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Path of Building Community[ (PoE2)]\InstallLocation
{
DWORD dwType = 0;
DWORD dwSize = MAX_PATH;
wchar_t wszValue[MAX_PATH]{};
#ifndef GAMEVERSION_2
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);
#else
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);
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);
#endif
if (dwStatus == ERROR_SUCCESS && dwSize > sizeof(wchar_t))
{
Expand All @@ -229,7 +229,7 @@ bool InsertLaunchLua(std::vector<std::wstring> &commandLine, std::string &firstL
#ifndef GAMEVERSION_2
basePath += L"\\Path of Building Community\\";
#else
basePath += L"\\Path of Building Community-PoE2\\";
basePath += L"\\Path of Building Community (PoE2)\\";
#endif
if (FindLaunchLua(basePath, commandLine, firstLine))
{
Expand Down

0 comments on commit 7fafc7f

Please sign in to comment.