-
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #477 from ciribob/beta
Release 1.9.2.0
- Loading branch information
Showing
57 changed files
with
2,536 additions
and
2,155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Set the default behavior, in case people don't have core.autocrlf set. | ||
* text=auto | ||
|
||
# Declare files that will always have CRLF line endings on checkout. | ||
*.sln text eol=crlf | ||
|
||
*.c text eol=crlf | ||
*.h text eol=crlf | ||
|
||
*.cpp text eol=crlf | ||
*.cs text eol=crlf | ||
*.xml text eol=crlf | ||
*.xaml text eol=crlf | ||
*.conf text eol=crlf | ||
*.lua text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -261,5 +261,5 @@ install-build/serverlog.txt | |
|
||
install-build/ | ||
sign.bat | ||
|
||
.leu | ||
|
||
.leu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" /> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> | ||
</startup> | ||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<dependentAssembly> | ||
<assemblyIdentity name="SharpDX" publicKeyToken="b4dcf0f35e5521f1" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.0" newVersion="4.0.1.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="Sentry.PlatformAbstractions" publicKeyToken="fba2ec45388e2af0" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-1.1.1.0" newVersion="1.1.1.0" /> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
using NLog.Config; | ||
using NLog.Targets; | ||
using NLog.Targets.Wrappers; | ||
using Sentry; | ||
|
||
namespace DCS_SR_Client | ||
{ | ||
|
@@ -29,6 +30,7 @@ public partial class App : Application | |
|
||
public App() | ||
{ | ||
SentrySdk.Init("https://[email protected]/5304752"); | ||
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledExceptionHandler); | ||
|
||
var location = AppDomain.CurrentDomain.BaseDirectory; | ||
|
@@ -59,9 +61,6 @@ public App() | |
|
||
ListArgs(); | ||
|
||
RequireAdmin(); | ||
|
||
|
||
#if !DEBUG | ||
if (IsClientRunning()) | ||
{ | ||
|
@@ -99,6 +98,9 @@ public App() | |
} | ||
} | ||
#endif | ||
|
||
RequireAdmin(); | ||
|
||
InitNotificationIcon(); | ||
|
||
} | ||
|
@@ -222,21 +224,21 @@ private bool IsClientRunning() | |
private void SetupLogging() | ||
{ | ||
// If there is a configuration file then this will already be set | ||
if(LogManager.Configuration != null) | ||
{ | ||
if(LogManager.Configuration != null) | ||
{ | ||
loggingReady = true; | ||
return; | ||
return; | ||
} | ||
|
||
var config = new LoggingConfiguration(); | ||
var fileTarget = new FileTarget | ||
{ | ||
FileName = "clientlog.txt", | ||
ArchiveFileName = "clientlog.old.txt", | ||
MaxArchiveFiles = 1, | ||
ArchiveAboveSize = 104857600, | ||
var fileTarget = new FileTarget | ||
{ | ||
FileName = "clientlog.txt", | ||
ArchiveFileName = "clientlog.old.txt", | ||
MaxArchiveFiles = 1, | ||
ArchiveAboveSize = 104857600, | ||
Layout = | ||
@"${longdate} | ${logger} | ${message} ${exception:format=toString,Data:maxInnerExceptionLevel=1}" | ||
@"${longdate} | ${logger} | ${message} ${exception:format=toString,Data:maxInnerExceptionLevel=1}" | ||
}; | ||
|
||
var wrapper = new AsyncTargetWrapper(fileTarget, 5000, AsyncTargetWrapperOverflowAction.Discard); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.