Commit Graph

38 Commits

Author SHA1 Message Date
RoosterDragon
323204014c Flush logs when crashing.
When the process is running, we use a finally block to call Log.Dispose and flush any outstanding logs to disk before the process exits. This works when we handle any exception in a matching catch block.

When the exception is unhandled, then the finally block will not run and instead the process will just exit. To fix this, flush the logs inside a catch block instead before rethrowing the error. This ensures we get logs even when crashing.
2024-08-16 17:49:35 +03:00
abcdefg30
5bf7fe852c Remove the copyright year numbers 2023-01-11 11:58:54 +02:00
abcdefg30
6a31b1f9f3 Update the copyright header year 2022-05-28 00:35:10 -05:00
Andre Mohren
6810469634 Updated copyright years. 2021-06-29 18:33:21 -05:00
teinarss
5667081764 Fix log should be disposed correctly 2021-04-26 21:50:26 +01:00
CrazyAlex25
2d05e10819 Modify build properties 2021-04-12 00:44:17 +02:00
teinarss
605181efe4 Update Log to use worker thread 2021-04-03 22:53:30 +01:00
Paul Chote
b622afd7fd Fix self-contained packaging. 2021-03-13 13:12:31 +01:00
Paul Chote
a70637f28f Fix missing System.Threading.Tasks.Parallel in packaged net5 builds. 2021-01-15 12:18:00 +01:00
Paul Chote
84ce33fe9c Trim unused assemblies to reduce packaged size further. 2021-01-09 19:53:22 +01:00
teinarss
5e74e58b22 Add support for dotnet core for Windows 2021-01-01 19:42:01 +01:00
Paul Chote
07a10069db Introduce new OpenRA.exe entrypoint and change OpenRA.Game to a library. 2020-11-27 20:32:02 +01:00
Matthew Bowra-Dean
4eaf97f90e Reverted packaging changes from launchers. 2011-01-27 20:50:03 +13:00
Chris Forbes
d835c14988 fix crash in windows launcher 2011-01-11 11:25:50 +13:00
Chris Forbes
712eb437ea blah 2011-01-07 20:38:36 +13:00
Chris Forbes
975682c57b fix silly debug popup in JSBridge 2011-01-07 15:34:28 +13:00
Chris Forbes
f03e6e6258 make it sortof work 2011-01-05 09:12:28 +13:00
Chris Forbes
f44ac769bf use a closure for the request state rather than dicts 2011-01-05 09:12:27 +13:00
Matthew Bowra-Dean
68a38c85f9 Uses process IDs in dictionary for httpRequests 2011-01-04 17:34:07 +13:00
Matthew Bowra-Dean
4de390d173 Fix missed call to Call function in Windows launcher. 2011-01-04 17:34:07 +13:00
Matthew Bowra-Dean
fb8812a7fd Fix for concurrent child processes while using pipes for IPC. 2011-01-04 17:34:07 +13:00
Matthew Bowra-Dean
562ab0eee0 httpRequest implemented properly in Windows launcher. 2011-01-02 16:12:05 +13:00
Matthew Bowra-Dean
a4493f48d5 httpRequest in win launcher uses utility program. Clean up usings and add missing license notices. 2011-01-02 16:11:54 +13:00
Paul Chote
b5b6b47e95 Implement metadata and httpRequest in the windows launcher. Untested. 2010-12-24 12:13:28 +13:00
Matthew Bowra-Dean
d8d33811e4 Added minimize button to launcher. 2010-12-19 18:41:36 +13:00
Matthew Bowra-Dean
564a4598b9 Added renderer selection to Windows launcher. 2010-11-30 19:08:34 +13:00
Matthew Bowra-Dean
ec5b9a1150 Select last mod at start of launcher. Don't run download action elevated. 2010-11-28 23:12:19 +13:00
Matthew Bowra-Dean
0f6f36411a Fix cnc & ra mod page layout on Windows. 2010-11-27 18:54:42 +13:00
Paul Chote
4ea04f461a Fix license info. 2010-11-27 11:19:39 +13:00
Matthew Bowra-Dean
ac513557a1 Removed old code, made installing mods work. 2010-11-26 01:01:12 +13:00
Matthew Bowra-Dean
db5b5698a7 Implemented remaining JS bridge functions for Win launcher. 2010-11-26 00:47:22 +13:00
Matthew Bowra-Dean
d2a52fd529 Bring Windows launcher into line with pchote's ideas. 2010-11-25 22:51:26 +13:00
Matthew Bowra-Dean
63d54952d0 Downloading packages now shows progress to the user. Utility app no longer immediately exits after downloading packages. 2010-11-21 13:10:21 +13:00
Matthew Bowra-Dean
0064543989 Allow building of Winforms launcher with Mono 2010-11-21 13:10:21 +13:00
Matthew Bowra-Dean
0c319e88c3 Utility now uses named pipe if passed --pipe. Installing mods now works properly too. 2010-11-21 13:10:21 +13:00
Matthew Bowra-Dean
da384af339 Refactoring of OpenRA.Utility. Whole lot of work on OpenRA.Launcher
Mod configuration dialog now fully functional, launch button also works.
2010-11-21 13:10:20 +13:00
Matthew Bowra-Dean
f98f3d0b39 Mod tree in configure mods dialog. 2010-11-21 13:10:20 +13:00
Matthew Bowra-Dean
439c366ba2 Winforms launcher beginnings. 2010-11-21 13:10:20 +13:00