mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Setup/Sounds
* resolved duplicate naming of setup function
This commit is contained in:
@@ -49,7 +49,7 @@ class FileGen
|
|||||||
'gems' => [['items', 'spell', 'itemenchantment'], null],
|
'gems' => [['items', 'spell', 'itemenchantment'], null],
|
||||||
'profiler' => [['quests', 'quests_startend', 'spell', 'currencies', 'achievement', 'titles'], null],
|
'profiler' => [['quests', 'quests_startend', 'spell', 'currencies', 'achievement', 'titles'], null],
|
||||||
'weightPresets' => [null, null],
|
'weightPresets' => [null, null],
|
||||||
'sounds' => [['sounds_files'], null]
|
'soundfiles' => [['sounds'], null]
|
||||||
);
|
);
|
||||||
|
|
||||||
public static $defaultExecTime = 30;
|
public static $defaultExecTime = 30;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ if (!defined('AOWOW_REVISION'))
|
|||||||
if (!CLI)
|
if (!CLI)
|
||||||
die('not in cli mode');
|
die('not in cli mode');
|
||||||
|
|
||||||
function sounds()
|
function soundfiles()
|
||||||
{
|
{
|
||||||
$ok = true;
|
$ok = true;
|
||||||
|
|
||||||
@@ -14,7 +14,6 @@ if (!CLI)
|
|||||||
$files = DB::Aowow()->selectCol('SELECT ABS(id) AS ARRAY_KEY, CONCAT(path, "/", `file`) FROM ?_sounds_files');
|
$files = DB::Aowow()->selectCol('SELECT ABS(id) AS ARRAY_KEY, CONCAT(path, "/", `file`) FROM ?_sounds_files');
|
||||||
$nFiles = count($files);
|
$nFiles = count($files);
|
||||||
$itr = $i = 0;
|
$itr = $i = 0;
|
||||||
$nStep = 1000;
|
|
||||||
foreach ($files as $fileId => $filePath)
|
foreach ($files as $fileId => $filePath)
|
||||||
{
|
{
|
||||||
$i++;
|
$i++;
|
||||||
Reference in New Issue
Block a user