From 9ec2f3445e0a8b286c4e58da75babd905e402847 Mon Sep 17 00:00:00 2001 From: kokolihapihvi <2726954+kokolihapihvi@users.noreply.github.com> Date: Sun, 8 Oct 2023 17:33:03 +0300 Subject: [PATCH] Fixed possible sqlite crash on single file publish --- RockSniffer/Addons/Storage/SQLiteStorage.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RockSniffer/Addons/Storage/SQLiteStorage.cs b/RockSniffer/Addons/Storage/SQLiteStorage.cs index 192f5d2..c55835b 100644 --- a/RockSniffer/Addons/Storage/SQLiteStorage.cs +++ b/RockSniffer/Addons/Storage/SQLiteStorage.cs @@ -14,7 +14,8 @@ public SQLiteStorage() { SQLiteConnection.CreateFile("addonstorage.sqlite"); } - + + Environment.SetEnvironmentVariable("SQLite_ConfigureDirectory", "."); Connection = new SQLiteConnection("Data Source=addonstorage.sqlite;"); Connection.Open(); }