Optimizer settings gardening

This commit is contained in:
2021-01-06 19:30:33 +01:00
parent 05117f6836
commit 1fcb640029
5 changed files with 25 additions and 15 deletions
+1 -2
View File
@@ -24,8 +24,7 @@ class osu_library
public function scan_library(string $root) : void
{
$time_start = microtime(true); // measure scanning time
$root = str_ireplace("\\", "/", $root); // fuck windows backslash
$root = rtrim($root, "/"); // remove trailing slash(es)
$root = utils::to_unix_slashes_without_trail($root);
// giving a different library should always cause a full rescan
if ($this->get_osu_root() !== $root)