Skip to content

Commit

Permalink
Enhance application shutdown process
Browse files Browse the repository at this point in the history
Add explicit application shutdown calls using Application.Exit() and Environment.Exit(0) when no file or folder is selected to ensure proper termination. Updated runtime configuration to disable Windows UI XAML projections.
  • Loading branch information
drpetersonfernandes committed Dec 9, 2024
1 parent cf85289 commit 107d5b6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CreateBatchFilesForXbox360XblaGames/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ private static void Main()

MessageBox.Show("No file selected. Exiting application.",
"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);

// Shutdown
Application.Exit();
Environment.Exit(0);

return;
}

Expand All @@ -51,6 +56,11 @@ private static void Main()

MessageBox.Show("No folder selected. Exiting application.",
"Error", MessageBoxButtons.OK, MessageBoxIcon.Error);

// Shutdown
Application.Exit();
Environment.Exit(0);

return;
}

Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
],
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": true
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": true,
"CSWINRT_USE_WINDOWS_UI_XAML_PROJECTIONS": false
}
}
}

0 comments on commit 107d5b6

Please sign in to comment.