mirror of
https://github.com/ppy/osu
synced 2024-12-16 03:45:46 +00:00
Merge pull request #19995 from its5Q/import-crash-fix
Fix crash with legacy import from incomplete installs
This commit is contained in:
commit
3e246caf05
@ -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…
Reference in New Issue
Block a user