mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Remove SingletonContextFactory
It is dangerous to use this as it doesn't correctly handle contexts and can cause issues that will never actually arise in normal execution. # Conflicts: # osu.Game/Database/SingletonContextFactory.cs
This commit is contained in:
@ -7,13 +7,11 @@ namespace osu.Game.Tests.Platform
|
||||
{
|
||||
public class TestStorage : DesktopStorage
|
||||
{
|
||||
public TestStorage(string baseName) : base(baseName, null)
|
||||
public TestStorage(string baseName)
|
||||
: base(baseName, null)
|
||||
{
|
||||
}
|
||||
|
||||
public override string GetDatabaseConnectionString(string name)
|
||||
{
|
||||
return "DataSource=:memory:";
|
||||
}
|
||||
public override string GetDatabaseConnectionString(string name) => "Data Source=" + GetUsablePathFor($"{(object)name}.db", true);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user