Setup/ImageGen

* consider preconverted png images when initially checking resources
 * fixed minor bugs
This commit is contained in:
Sarjuuk
2024-05-09 15:16:10 +02:00
parent d7fa4a900e
commit 9a1cb5f2f9
3 changed files with 34 additions and 26 deletions

View File

@@ -266,7 +266,7 @@ class CLISetup
return false;
// backslash to forward slash
$_ = strtolower(str_replace('\\', '/', $file));
$_ = strtolower(CLI::nicePath($file));
// remove trailing slash
if (mb_substr($_, -1, 1) == '/')
@@ -291,7 +291,7 @@ class CLISetup
return [];
// backslash to forward slash
$_ = strtolower(str_replace('\\', '/', $path));
$_ = strtolower(CLI::nicePath($path));
foreach (self::$mpqFiles as $lowerFile => $realFile)
{