Move default function specifications to OsuConfigManager

This ensures that running tests in release configuration will not fail
due to the same issue being fixed in this PR.
This commit is contained in:
Dean Herbert 2022-03-04 12:31:57 +09:00
parent f09a4e9c5b
commit ac914878b8
2 changed files with 2 additions and 4 deletions

View File

@ -14,8 +14,6 @@ namespace osu.Game.Configuration
public DevelopmentOsuConfigManager(Storage storage)
: base(storage)
{
LookupKeyBindings = _ => "unknown";
LookupSkinName = _ => "unknown";
}
}
}

View File

@ -240,9 +240,9 @@ namespace osu.Game.Configuration
};
}
public Func<Guid, string> LookupSkinName { private get; set; }
public Func<Guid, string> LookupSkinName { private get; set; } = _ => @"unknown";
public Func<GlobalAction, LocalisableString> LookupKeyBindings { get; set; }
public Func<GlobalAction, LocalisableString> LookupKeyBindings { get; set; } = _ => @"unknown";
}
// IMPORTANT: These are used in user configuration files.