mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Reformat code
This commit is contained in:
@ -438,10 +438,14 @@ namespace osu.Game.Database
|
|||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
}
|
}
|
||||||
|
|
||||||
return Task.Factory.StartNew(() => {
|
return Task.Factory.StartNew(() =>
|
||||||
try {
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
Import(stable.GetDirectories(ImportFromStablePath).Select(f => stable.GetFullPath(f)).ToArray());
|
Import(stable.GetDirectories(ImportFromStablePath).Select(f => stable.GetFullPath(f)).ToArray());
|
||||||
} catch (DirectoryNotFoundException) {
|
}
|
||||||
|
catch (DirectoryNotFoundException)
|
||||||
|
{
|
||||||
// This handles situations like when the user does not have a Skins folder
|
// This handles situations like when the user does not have a Skins folder
|
||||||
// which would have this exception thrown from stable.GetDirectories
|
// which would have this exception thrown from stable.GetDirectories
|
||||||
Logger.Log("No " + ImportFromStablePath + " folder available in osu!stable installation", LoggingTarget.Information, LogLevel.Error);
|
Logger.Log("No " + ImportFromStablePath + " folder available in osu!stable installation", LoggingTarget.Information, LogLevel.Error);
|
||||||
|
Reference in New Issue
Block a user