Make it more clear that func and line get the same info

This commit is contained in:
Jordan Eldredge 2019-07-19 21:36:17 -07:00
parent ad4c95d602
commit b44c825acb

View file

@ -233,6 +233,10 @@ function parseComand({ start, makiFile, length, pos }) {
arg = makiFile.readUInt32LE();
break;
}
case "func":
// Note in the perl code here: "todo, something strange going on here..."
arg = makiFile.readUInt32LE() + 5 + pos;
break;
case "line": {
arg = makiFile.readUInt32LE() + 5 + pos;
break;
@ -242,13 +246,6 @@ function parseComand({ start, makiFile, length, pos }) {
arg = makiFile.readUInt32LE();
break;
}
case "func": {
// Note in the perl code here: "todo, something strange going on here..."
const variable = makiFile.readUInt32LE() + 5;
const offset = variable + pos;
arg = offset;
break;
}
case "obj": {
// Classes Offset
arg = makiFile.readUInt32LE();