mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Address remaining reviews suggestions.
This commit is contained in:
@ -35,12 +35,13 @@ namespace osu.Game.IO
|
||||
{
|
||||
var songsDirectoryPath = Path.Combine(BasePath, stable_default_songs_path);
|
||||
|
||||
var configFile = GetFiles(".", "osu!.*.cfg").FirstOrDefault();
|
||||
var configFile = GetFiles(".", "osu!.*.cfg").SingleOrDefault();
|
||||
|
||||
if (configFile == null)
|
||||
return songsDirectoryPath;
|
||||
|
||||
using (var textReader = new StreamReader(GetStream(configFile)))
|
||||
using (var stream = GetStream(configFile))
|
||||
using (var textReader = new StreamReader(stream))
|
||||
{
|
||||
string line;
|
||||
|
||||
|
Reference in New Issue
Block a user