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
RoosterDragon
c8efc5fdd7
Fix CA1854
2023-11-16 09:29:17 +02:00
RoosterDragon
f4af5c1764
Fix CA1852
2023-06-06 11:51:47 +03:00
RoosterDragon
5254348819
Fix IDE0056
2023-04-08 16:51:51 +03:00
RoosterDragon
9dd4f938da
Cache reflection calls when running utility lints and commands.
...
Reduces runtime of --check-yaml command to 70% of original.
2023-04-05 00:25:32 +02:00
Moath Altarawneh
44be6cea94
Update Program.cs
...
a small change to line 174 to use an easier way to format the string 👍
2023-01-14 13:02:28 +02:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
Matthias Mailänder
f6d13baf4b
Use inline strings.
2022-09-26 11:05:15 +03:00
Matthias Mailänder
90a2b677f1
Exit with error code on invalid commands and arguments.
2022-09-26 11:05:15 +03:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
penev92
9a30d260a1
Added launch profiles for the Utility project
2022-05-15 23:06:25 -05:00
penev92
0d24ccc47a
Fixed unnecessary zero-length array allocations
...
Changed all currently present zero-length array allocations in the codebase to use `Array.Empty` instead.
2022-01-20 22:10:28 +01:00
Matthias Mailänder
07815143f1
Fix CA1825 warnings on empty array initialisation.
2021-12-06 13:19:28 +01:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
teinarss
10676be377
Replace F extension with string interpolation
2021-05-08 22:20:59 +02: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
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
20fe59e844
Output compiled binaries to ./bin.
2020-11-24 17:53:48 +01:00
Paul Chote
6ad5b9ebc4
Allow the game root directory to be moved away from the binaries.
2020-11-24 17:53:48 +01:00
Paul Chote
1cc1f93fb0
Rename Platform.GameDir to Platform.EngineDir.
2020-11-24 17:53:48 +01:00
Paul Chote
888915b53b
Use Platform.GameDir explicitly in hardcoded paths.
2020-11-22 16:42:46 +01:00
teinarss
19b02875c7
Use Tuple syntax
2020-08-15 10:37:10 +01:00
Paul Chote
2abd137494
Remove OpenRA.PostProcess.exe.
...
The LAA flag is now set when packaging
Windows release installers.
2020-05-02 17:26:54 +02:00
teinarss
e13fd693c3
Add Nuget packages for all dependencies
2020-04-18 11:36:25 -05:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
RoosterDragon
8f573568c8
Fix PostProcess command to handle paths with spaces.
2019-06-24 23:19:24 +02:00
Paul Chote
4f7dca809f
Fix csproj formatting.
2019-05-26 23:13:37 +02:00
Paul Chote
845fca25d1
Change platform from x86 to Any CPU (preferring 64 bit)
...
A Release-x86 configuration allows x86 Windows installers to still be created.
2019-05-26 23:13:37 +02:00
Paul Chote
ba282865f1
Replace legacy StyleCop(Plus) with StyleCopAnalyzers
...
Analyzers are enabled in the Debug configuration
only to avoid unnecessary overheads when compiling
normally.
2019-05-09 20:40:08 +02:00
Paul Chote
ac8252531b
Fix solution listings in the Rider IDE.
2019-05-05 23:19:04 +02:00
Paul Chote
1955cac84e
Unify Windows and mono build systems.
...
The Makefile behaviour is recreated using the new and significantly
cleaner .NET Core csproj format.
fixheader.exe is promoted to OpenRA.PostProcess.exe and now runs
on all platforms.
2019-05-05 23:19:04 +02:00
Paul Chote
4886cca5d3
Remove System.Drawing references from mod code.
2019-03-04 18:26:42 +00:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
abcdefg30
5d1c37a4c5
Remove the CodeAnalysisRuleSet property from all csproj files
2018-08-25 22:02:59 +02:00
Paul Chote
670e153372
Remove byte order marks from csproj files.
2018-07-01 11:08:32 +02:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
RoosterDragon
3a9abda441
Specify C# 5 as the language version used in all projects.
...
Attempts to use features from a new version will generate compile errors (on Roslyn and possibly other compilers), preventing accidental adoption of new language features.
2017-10-19 14:18:03 +02:00
Paul Chote
215aa6fa60
Remove support for loading mods from the support dir.
2017-04-21 17:55:15 +01:00
Taryn Hill
4d5f9e0de7
Server: Get mod search paths from env MOD_SEARCH_PATHS
2017-04-03 17:58:44 -05:00
Taryn Hill
d095ccf668
Utility: Get mod search paths from env MOD_SEARCH_PATHS
2017-04-02 18:49:03 -05:00
Paul Chote
00b7b14f2e
Fix utility mod listing.
2017-02-17 20:53:17 +00:00
Paul Chote
7d758202c5
Rework mod searching/enumeration.
2017-02-12 13:21:11 +00:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
3261516b51
Support loading mods from arbitrary locations.
2016-08-08 22:36:08 +01:00
Paul Chote
3df9efb95d
Rework mod enumeration / caching.
...
- Replaced ModMetadata.AllMods with Game.Mods.
- Store / reference mod Manifest instead of ModMetadata.
- Removes engine dependency on ModContent class.
2016-08-08 22:36:07 +01:00
Paul Chote
45a596953e
Add a Utility class and update command interface.
2016-08-08 22:23:16 +01:00
Matthias Mailänder
5029ac705f
Update to .NET 4.5
2016-05-19 21:24:21 +02:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00