Skip to content

Conversation

Tudzer
Copy link

@Tudzer Tudzer commented Nov 11, 2023

I've encountered a case when GOG game registry entry (Cyberpank 2077 - EP1) has no executable path specified, as it's not a base game. The plugin uses string.Empty as default values when some registry value is not specified, but string.Empty is not a valid argument for Path.GetDirectoryName and will lead to unhandled ArgumentException being thrown by NormalizePath method.

@Tudzer
Copy link
Author

Tudzer commented Nov 11, 2023

Here is a full dump of that registry entry in case you are interested:

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Games\1256837418]
"gameName"="Cyberpunk 2077 - EP1"
"gameID"="1256837418"
"productID"="1256837418"
"language"="english"
"lang_code"="en-US"
"path"="C:\\Games\\Cyberpunk 2077"
"startMenu"="Cyberpunk 2077 - EP1"
"ver"="2.0_PhL"
"uninstallCommand"="C:\\Games\\Cyberpunk 2077\\unins001.exe"
"dependsOn"="1423049311"
"supportLink"=""
"BUILDID"="56896837368890911"
"INSTALLDATE"="2023-09-27 15:18:00"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant