mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-24 02:27:37 +00:00
Consolidate cases that get a variable offset
This commit is contained in:
parent
39b7063b5b
commit
b61ca9f791
1 changed files with 3 additions and 12 deletions
|
|
@ -229,10 +229,6 @@ function parseComand({ start, makiFile, length, pos }) {
|
|||
|
||||
let arg = null;
|
||||
switch (argType) {
|
||||
case "var": {
|
||||
arg = makiFile.readUInt32LE();
|
||||
break;
|
||||
}
|
||||
case "func":
|
||||
// Note in the perl code here: "todo, something strange going on here..."
|
||||
arg = makiFile.readUInt32LE() + 5 + pos;
|
||||
|
|
@ -241,16 +237,11 @@ function parseComand({ start, makiFile, length, pos }) {
|
|||
arg = makiFile.readUInt32LE() + 5 + pos;
|
||||
break;
|
||||
}
|
||||
case "objFunc": {
|
||||
// TODO: ClassesOffset
|
||||
case "var":
|
||||
case "objFunc":
|
||||
case "obj":
|
||||
arg = makiFile.readUInt32LE();
|
||||
break;
|
||||
}
|
||||
case "obj": {
|
||||
// Classes Offset
|
||||
arg = makiFile.readUInt32LE();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
throw new Error("Invalid argType");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue