Skip to content

Commit 09f9cb1

Browse files
authored
Fixed crash related to ARC missing (#57)
1 parent c5223ce commit 09f9cb1

File tree

1 file changed

+4
-0
lines changed
  • GameLauncher_Console/GameLauncher_Console/Platforms

1 file changed

+4
-0
lines changed

GameLauncher_Console/GameLauncher_Console/Platforms/Arc.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ public void GetGames(List<ImportGameData> gameDataList, bool expensiveIcons = fa
8787

8888
using (RegistryKey key = Registry.LocalMachine.OpenSubKey(Path.Combine(ARC_REG, ARC_GAMES), RegistryKeyPermissionCheck.ReadSubTree)) // HKLM32
8989
{
90+
if(key == null)
91+
{
92+
return;
93+
}
9094
foreach (string subKey in key.GetSubKeyNames()) // Add subkeys to search list
9195
{
9296
try

0 commit comments

Comments
 (0)