Fix compilation error for NoAppImage

pull/35/head
Miepee 4 years ago
parent cd1f9b67ad
commit f5ddbf27c4

@ -556,7 +556,7 @@ public static class Profile
#if NOAPPIMAGE #if NOAPPIMAGE
// Use the exe name based on the desktop file in the AppImage, as that's what has been used for patching // 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"); 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}"); return File.Exists($"{Core.ProfilesPath}/{profile.Name}/{exe}");
#else #else
return File.Exists($"{Core.ProfilesPath}/{profile.Name}/AM2R.AppImage"); return File.Exists($"{Core.ProfilesPath}/{profile.Name}/AM2R.AppImage");

Loading…
Cancel
Save