From c85ba1a208a4edb282fdfdfb7affe29ff00dffd8 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Tue, 21 Mar 2017 11:18:20 +0100 Subject: [PATCH] Setup/Sounds * resolved duplicate naming of setup function --- setup/tools/fileGen.class.php | 2 +- setup/tools/filegen/{sounds.func.php => soundfiles.func.php} | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) rename setup/tools/filegen/{sounds.func.php => soundfiles.func.php} (97%) diff --git a/setup/tools/fileGen.class.php b/setup/tools/fileGen.class.php index d1da2583..cbaaae84 100644 --- a/setup/tools/fileGen.class.php +++ b/setup/tools/fileGen.class.php @@ -49,7 +49,7 @@ class FileGen 'gems' => [['items', 'spell', 'itemenchantment'], null], 'profiler' => [['quests', 'quests_startend', 'spell', 'currencies', 'achievement', 'titles'], null], 'weightPresets' => [null, null], - 'sounds' => [['sounds_files'], null] + 'soundfiles' => [['sounds'], null] ); public static $defaultExecTime = 30; diff --git a/setup/tools/filegen/sounds.func.php b/setup/tools/filegen/soundfiles.func.php similarity index 97% rename from setup/tools/filegen/sounds.func.php rename to setup/tools/filegen/soundfiles.func.php index 099e813d..621b985c 100644 --- a/setup/tools/filegen/sounds.func.php +++ b/setup/tools/filegen/soundfiles.func.php @@ -6,7 +6,7 @@ if (!defined('AOWOW_REVISION')) if (!CLI) die('not in cli mode'); - function sounds() + function soundfiles() { $ok = true; @@ -14,7 +14,6 @@ if (!CLI) $files = DB::Aowow()->selectCol('SELECT ABS(id) AS ARRAY_KEY, CONCAT(path, "/", `file`) FROM ?_sounds_files'); $nFiles = count($files); $itr = $i = 0; - $nStep = 1000; foreach ($files as $fileId => $filePath) { $i++;