From f5ddbf27c4a444355db626306e0b5cd9a3c64d1c Mon Sep 17 00:00:00 2001 From: Miepee Date: Wed, 19 Oct 2022 14:57:01 +0200 Subject: [PATCH] Fix compilation error for NoAppImage --- AM2RLauncher/AM2RLauncherLib/Profile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AM2RLauncher/AM2RLauncherLib/Profile.cs b/AM2RLauncher/AM2RLauncherLib/Profile.cs index b60615d..42144d3 100644 --- a/AM2RLauncher/AM2RLauncherLib/Profile.cs +++ b/AM2RLauncher/AM2RLauncherLib/Profile.cs @@ -556,7 +556,7 @@ public static class Profile #if NOAPPIMAGE // Use the exe name based on the desktop file in the AppImage, as that's what has been used for patching string desktopContents = File.ReadAllText($"{Core.PatchDataPath}/data/AM2R.AppDir/AM2R.desktop"); - exe = Regex.Match(desktopContents, @"(?<=Exec=).*").Value; + string exe = Regex.Match(desktopContents, @"(?<=Exec=).*").Value; return File.Exists($"{Core.ProfilesPath}/{profile.Name}/{exe}"); #else return File.Exists($"{Core.ProfilesPath}/{profile.Name}/AM2R.AppImage");