mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-20 16:49:52 +00:00
Clean up copy/paste cruft
This commit is contained in:
parent
ad428e9e33
commit
cbb309c8e8
1 changed files with 0 additions and 9 deletions
|
|
@ -2,15 +2,10 @@
|
|||
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const parse = require("../parser").default;
|
||||
const JSZip = require("jszip");
|
||||
const Utils = require("../../utils");
|
||||
const { getClass, getFunctionObject, getFormattedId } = require("../objects");
|
||||
const glob = require("glob");
|
||||
|
||||
const CALL_OPCODES = new Set([24, 112]);
|
||||
const SKIN_FILENAME_BLACKLIST = new Set(["Fuzzy_Muffins.wal"]);
|
||||
|
||||
function findWals(parentDir) {
|
||||
return new Promise((resolve, reject) => {
|
||||
glob("**/cPro2_Aluminum_1_1.wal", { cwd: parentDir }, (err, files) => {
|
||||
|
|
@ -68,10 +63,6 @@ async function main(parentDir) {
|
|||
// one at a time for some reason. ¯\_(ツ)_/¯
|
||||
for (const walPath of paths) {
|
||||
try {
|
||||
const fileName = path.basename(walPath);
|
||||
if (SKIN_FILENAME_BLACKLIST.has(fileName)) {
|
||||
continue;
|
||||
}
|
||||
console.error(`Working on ${walPath}`);
|
||||
attributeData.push(...(await getAttributeDataFromWal(walPath)));
|
||||
} catch (e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue