This commit is contained in:
2020-12-27 22:22:22 +01:00
parent 0ee875f3fc
commit 321c26301d
4 changed files with 42 additions and 38 deletions
+3
View File
@@ -118,13 +118,16 @@ class osu_library
$osb_glob = glob(utils::globsafe($folder) . "/*.osb");
$glob = array_merge($osu_glob, $osb_glob);
$cacher = new osu_cacher($this->get_library_folder(), self::$cache_root);
$parser = new osu_parser($cacher);
foreach ($glob as $file)
{
$difficulty_key = basename($file);
$difficulty = $parser->parse_osu_file_format($file);
$difficulty["key"] = $difficulty_key;
$difficulty["path"] = $file;