From 31621d86774c54a3735c149bf4a37ca636e24a67 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Fri, 25 Mar 2022 10:55:00 -0400 Subject: [PATCH] fix epic path exception --- CreamInstaller/CreamInstaller.csproj | 4 ++-- CreamInstaller/Epic/EpicLibrary.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CreamInstaller/CreamInstaller.csproj b/CreamInstaller/CreamInstaller.csproj index c5d2b4d..5b89a59 100644 --- a/CreamInstaller/CreamInstaller.csproj +++ b/CreamInstaller/CreamInstaller.csproj @@ -5,7 +5,7 @@ True Resources\ini.ico true - 3.4.0.4 + 3.4.0.5 Resources\ini.ico LICENSE 2021, pointfeev (https://github.com/pointfeev) @@ -36,7 +36,7 @@ True - + diff --git a/CreamInstaller/Epic/EpicLibrary.cs b/CreamInstaller/Epic/EpicLibrary.cs index af175d7..37c17ee 100644 --- a/CreamInstaller/Epic/EpicLibrary.cs +++ b/CreamInstaller/Epic/EpicLibrary.cs @@ -20,7 +20,7 @@ internal static class EpicLibrary epicManifestsPath ??= Registry.GetValue(@"HKEY_CURRENT_USER\Software\Wow6432Node\Epic Games\EOS", "ModSdkMetadataDir", null) as string; epicManifestsPath ??= Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Epic Games\EpicGamesLauncher", "AppDataPath", null) as string; epicManifestsPath ??= Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Epic Games\EpicGamesLauncher", "AppDataPath", null) as string; - if (epicManifestsPath.EndsWith(@"\Data")) epicManifestsPath += @"\Manifests"; + if (epicManifestsPath is not null && epicManifestsPath.EndsWith(@"\Data")) epicManifestsPath += @"\Manifests"; return epicManifestsPath; } }