mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Fix crash with legacy import from incomplete installs
This commit is contained in:
parent
cf6bb3b030
commit
0cc6a76c17
@ -20,6 +20,10 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
protected override IEnumerable<string> GetStableImportPaths(Storage storage)
|
protected override IEnumerable<string> GetStableImportPaths(Storage storage)
|
||||||
{
|
{
|
||||||
|
// make sure the directory exists
|
||||||
|
if (!storage.ExistsDirectory(string.Empty))
|
||||||
|
yield break;
|
||||||
|
|
||||||
foreach (string directory in storage.GetDirectories(string.Empty))
|
foreach (string directory in storage.GetDirectories(string.Empty))
|
||||||
{
|
{
|
||||||
var directoryStorage = storage.GetStorageForDirectory(directory);
|
var directoryStorage = storage.GetStorageForDirectory(directory);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user