diff --git a/Directory.Packages.props b/Directory.Packages.props index cecd1598..4bdebdb4 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,7 +4,9 @@ - + + + diff --git a/SS14.Launcher/Program.cs b/SS14.Launcher/Program.cs index e6506f45..eafd6cde 100644 --- a/SS14.Launcher/Program.cs +++ b/SS14.Launcher/Program.cs @@ -1,3 +1,4 @@ +using Microsoft.Data.Sqlite; using System; using System.Collections.Generic; using System.Diagnostics; @@ -42,6 +43,9 @@ public static void Main(string[] args) Console.OutputEncoding = Encoding.UTF8; #endif +#if USE_SYSTEM_SQLITE + SQLitePCL.raw.SetProvider(new SQLitePCL.SQLite3Provider_sqlite3()); +#endif var msgr = new LauncherMessaging(); Locator.CurrentMutable.RegisterConstant(msgr); diff --git a/SS14.Launcher/SS14.Launcher.csproj b/SS14.Launcher/SS14.Launcher.csproj index 24c6ea8d..bc0ee4f7 100644 --- a/SS14.Launcher/SS14.Launcher.csproj +++ b/SS14.Launcher/SS14.Launcher.csproj @@ -12,6 +12,12 @@ true CA1416 + + True + + + $(DefineConstants);USE_SYSTEM_SQLITE + %(Filename) @@ -39,7 +45,9 @@ - + + + diff --git a/SS14.Loader/SS14.Loader.csproj b/SS14.Loader/SS14.Loader.csproj index d20f8a42..f01f7231 100644 --- a/SS14.Loader/SS14.Loader.csproj +++ b/SS14.Loader/SS14.Loader.csproj @@ -21,7 +21,9 @@ - + + +