diff --git a/osu.Desktop.VisualTests/Platform/TestStorage.cs b/osu.Desktop.VisualTests/Platform/TestStorage.cs
new file mode 100644
index 0000000000..4e7c1867e3
--- /dev/null
+++ b/osu.Desktop.VisualTests/Platform/TestStorage.cs
@@ -0,0 +1,29 @@
+using System;
+using System.IO;
+using osu.Framework;
+using osu.Framework.Desktop.Platform;
+using SQLite.Net;
+using SQLite.Net.Platform.Generic;
+using SQLite.Net.Interop;
+using SQLite.Net.Platform.Win32;
+
+namespace osu.Desktop.Platform
+{
+ public class TestStorage : DesktopStorage
+ {
+ public TestStorage(string baseName) : base(baseName)
+ {
+ }
+
+ public override SQLiteConnection GetDatabase(string name)
+ {
+ Directory.CreateDirectory(BasePath);
+ ISQLitePlatform platform;
+ if (RuntimeInfo.IsWindows)
+ platform = new SQLitePlatformWin32();
+ else
+ platform = new SQLitePlatformGeneric();
+ return new SQLiteConnection(platform, $@":memory:");
+ }
+ }
+}
\ No newline at end of file
diff --git a/osu.Desktop.VisualTests/VisualTestGame.cs b/osu.Desktop.VisualTests/VisualTestGame.cs
index 38ac3b45f9..bc77a4b304 100644
--- a/osu.Desktop.VisualTests/VisualTestGame.cs
+++ b/osu.Desktop.VisualTests/VisualTestGame.cs
@@ -11,6 +11,7 @@ using System.IO;
using System.Collections.Generic;
using osu.Game.GameModes.Play;
using SQLiteNetExtensions.Extensions;
+using osu.Desktop.Platform;
namespace osu.Framework.VisualTests
{
@@ -72,7 +73,7 @@ namespace osu.Framework.VisualTests
public override void Load(BaseGame game)
{
- (Host.Storage as DesktopStorage).InMemorySQL = true;
+ Host.Storage = new TestStorage(@"visual-tests");
base.Load(game);
for (int i = 0; i < 100; i += 10)
InsertTestMap(i);
diff --git a/osu.Desktop.VisualTests/osu.Desktop.VisualTests.csproj b/osu.Desktop.VisualTests/osu.Desktop.VisualTests.csproj
index 5a0fd5744d..f288c2529a 100644
--- a/osu.Desktop.VisualTests/osu.Desktop.VisualTests.csproj
+++ b/osu.Desktop.VisualTests/osu.Desktop.VisualTests.csproj
@@ -85,17 +85,20 @@
True
-
- $(SolutionDir)\packages\SQLiteNetExtensions.1.3.0\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1\SQLiteNetExtensions.dll
-
$(SolutionDir)\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll
- $(SolutionDir)\packages\SQLite.Net-PCL.3.1.1\lib\net4\SQLite.Net.Platform.Win32.dll
+ $(SolutionDir)\packages\SQLite.Net-PCL.3.0.5\lib\net4\SQLite.Net.Platform.Win32.dll
+
+
+ $(SolutionDir)\packages\SQLite.Net-PCL.3.0.5\lib\net40\SQLite.Net.dll
- $(SolutionDir)\packages\SQLite.Net-PCL.3.1.1\lib\net40\SQLite.Net.Platform.Generic.dll
+ $(SolutionDir)\packages\SQLite.Net-PCL.3.0.5\lib\net40\SQLite.Net.Platform.Generic.dll
+
+
+ $(SolutionDir)\packages\SQLiteNetExtensions.1.3.0\lib\portable-net45+netcore45+wpa81+wp8+MonoAndroid1+MonoTouch1\SQLiteNetExtensions.dll
@@ -161,8 +164,12 @@
+
+
+
+