diff --git a/launcher/firstLaunch/firstlaunch_moc.cpp b/launcher/firstLaunch/firstlaunch_moc.cpp index 194a45c45..b12bf4374 100644 --- a/launcher/firstLaunch/firstlaunch_moc.cpp +++ b/launcher/firstLaunch/firstlaunch_moc.cpp @@ -296,12 +296,18 @@ QString FirstLaunchView::getHeroesInstallDir() { #ifdef VCMI_WINDOWS QString gogPath = QSettings("HKEY_LOCAL_MACHINE\\SOFTWARE\\GOG.com\\Games\\1207658787", QSettings::NativeFormat).value("path").toString(); + if(!gogPath.isEmpty()) + return gogPath; + gogPath = QSettings("HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\GOG.com\\Games\\1207658787", QSettings::NativeFormat).value("path").toString(); if(!gogPath.isEmpty()) return gogPath; QString cdPath = QSettings("HKEY_LOCAL_MACHINE\\SOFTWARE\\New World Computing\\Heroes of Might and MagicĀ® III\\1.0", QSettings::NativeFormat).value("AppPath").toString(); if(!cdPath.isEmpty()) return cdPath; + cdPath = QSettings("HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\New World Computing\\Heroes of Might and MagicĀ® III\\1.0", QSettings::NativeFormat).value("AppPath").toString(); + if(!cdPath.isEmpty()) + return cdPath; #endif return QString{}; }