Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
khbsd committed May 30, 2024
1 parent 3ff62a6 commit 91e4102
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions commands/worker_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,23 @@ function taskIntake() {
// console.log(workerData.task)
if (Array.isArray(workerData.task)) {
for (let i = 0; i < workerData.task.length; i++) {
console.log(`converting ${workerData.task[i]}`)
// convert(workerData.task[i]);

try {
raiseInfo(`converting ${workerData.task[i]}`);
convert(workerData.task[i]);
} catch (Error) {
raiseError(`converting ${workerData.task[i]}\n failed with error ${Error}`);
}

}
} else if (typeof(workerData.task) == 'string') {
// convert(workerData.task);
try {
raiseInfo(`converting ${workerData.task}`);
convert(workerData.task);
} catch (Error) {
raiseError(`converting ${workerData.task}\n failed with error ${Error}`);
}
}

}

taskIntake();
2 changes: 1 addition & 1 deletion support_files/lslib_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const convertDirs = ["[PAK]_UI", "[PAK]_Armor", "RootTemplates", "MultiEffectInf
const illegalFiles = ["Icons_Items.lsx"];

// excluding these packs because lslib uses something else to unpack them
const virtualTextureRegex = /VirtualTextures_[\d]+/;
const virtualTextureRegex = /Textures_[\d]+/;
const hotfixPatchRegex = /Patch[\d]+_Hotfix[\d]+/;

// tools to test where the process is
Expand Down

0 comments on commit 91e4102

Please sign in to comment.