Posted August 27, 2015
This is a technical question. I am wondering if there is a way for a third-party program to query where GOG games are installed.
I have a use-case for this, which is basically . ZDoom is a source port that can run Doom, Heretic, Hexen, Strife, and [url=http://zdoom.org/wiki/IWAD]more and for user's convenience it automatically detect the game data files (called IWADs in Doom's jargon) from their Steam install folders so that people don't have to look for them and manually copy the files into ZDoom's own install folder. Since the Doom games are now also sold on GOG, and will hopefully be followed by Heretic, Hexen, and Strife, I would like to provide the same convenience for people who purchased these games on GOG as for those who purchased it on Steam.
Looking through my registry, I don't see anything that looks like a GOG install directory (unless it's somehow encoded in that mysterious HKEY_CURRENT_USER\Software\GOG.com\Secret or HKEY_CURRENT_USER\Software\GOG.com\Token values). I do believe however it's kept track of somehow because the first time I installed a game from GOG I changed the install parent folder it wanted by default (C:\GOG Games IIRC) and after that every other game took the same parent folder I chose the first time instead of suggesting C:\GOG Games again.
I have a use-case for this, which is basically . ZDoom is a source port that can run Doom, Heretic, Hexen, Strife, and [url=http://zdoom.org/wiki/IWAD]more and for user's convenience it automatically detect the game data files (called IWADs in Doom's jargon) from their Steam install folders so that people don't have to look for them and manually copy the files into ZDoom's own install folder. Since the Doom games are now also sold on GOG, and will hopefully be followed by Heretic, Hexen, and Strife, I would like to provide the same convenience for people who purchased these games on GOG as for those who purchased it on Steam.
Looking through my registry, I don't see anything that looks like a GOG install directory (unless it's somehow encoded in that mysterious HKEY_CURRENT_USER\Software\GOG.com\Secret or HKEY_CURRENT_USER\Software\GOG.com\Token values). I do believe however it's kept track of somehow because the first time I installed a game from GOG I changed the install parent folder it wanted by default (C:\GOG Games IIRC) and after that every other game took the same parent folder I chose the first time instead of suggesting C:\GOG Games again.