Removed hardcoded osu! folder path

This commit is contained in:
2020-12-26 13:42:17 +01:00
parent 012165cdfc
commit 660d3741fb
4 changed files with 65 additions and 11 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ foreach ($library as $key => $set)
$tiempo = 0;
foreach ($set["difficulties"] as $map)
{
$tiempo += $map["process_time"];
$tiempo += $map["parse_time"];
}
$proc_times[$key] = $tiempo;
}
@@ -53,6 +53,6 @@ foreach ($proc_times as $key => $tiempo)
{
$value = $library[$key];
$firstdiff = $value["difficulties"][array_key_first($value["difficulties"])];
echo str_pad(round($tiempo, 5), 7, "0") . "s " . $value["id"] . ": " . $firstdiff["artist"] . " - " . $firstdiff["title"] . " (" . count($value["difficulties"]) . " difficulties)\n";
echo str_pad(round($tiempo, 5), 7, "0") . "s " . $value["id"] . ": " . $firstdiff["Metadata"]["Artist"] . " - " . $firstdiff["Metadata"]["Title"] . " (" . count($value["difficulties"]) . " difficulties)\n";
}
echo "</pre>";