We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a4adf6 commit 76601e4Copy full SHA for 76601e4
UWPHook/GamesWindow.xaml.cs
@@ -384,8 +384,9 @@ private async Task<bool> ExportGames()
384
{
385
var users = SteamManager.GetUsers(steam_folder);
386
var selected_apps = Apps.Entries.Where(app => app.Selected);
387
- var exePath = @"""" + System.Reflection.Assembly.GetExecutingAssembly().Location + @"""";
388
- var exeDir = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
+ var processModule = Process.GetCurrentProcess().MainModule;
+ var exePath = processModule?.FileName;
389
+ var exeDir = Path.GetDirectoryName(exePath);
390
391
List<Task> gridImagesDownloadTasks = new List<Task>();
392
bool downloadGridImages = !String.IsNullOrEmpty(Properties.Settings.Default.SteamGridDbApiKey);
0 commit comments