Skip to content

Commit

Permalink
UI: Respect data storage location setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Qxe5 committed Nov 28, 2023
1 parent c0e7d9f commit dfee774
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ public static int Main(string[] args)
Program.CommandLineArgs = (string[])args.Clone();
BuildAvaloniaApp().StartWithClassicDesktopLifetime(args, ShutdownMode.OnMainWindowClose);
EmuApi.Release();

//Cleanup portable installation
if(ConfigManager.HomeFolder == ConfigManager.DefaultPortableFolder && Directory.Exists(ConfigManager.DefaultDocumentsFolder)) {
Directory.Delete(ConfigManager.DefaultDocumentsFolder, true);
}
}

return 0;
Expand Down

0 comments on commit dfee774

Please sign in to comment.