Fixed: updated variable count in header.
This commit is contained in:
parent
500a784ab0
commit
d52ef38a89
1 changed files with 1 additions and 3 deletions
|
@ -11,7 +11,6 @@ namespace arookas
|
||||||
bool mOpen;
|
bool mOpen;
|
||||||
aBinaryWriter mWriter;
|
aBinaryWriter mWriter;
|
||||||
uint mTextOffset, mDataOffset, mSymbolOffset;
|
uint mTextOffset, mDataOffset, mSymbolOffset;
|
||||||
int mVarCount;
|
|
||||||
|
|
||||||
public sunWriter Text { get; private set; }
|
public sunWriter Text { get; private set; }
|
||||||
public sunDataTable DataTable { get; private set; }
|
public sunDataTable DataTable { get; private set; }
|
||||||
|
@ -106,7 +105,6 @@ namespace arookas
|
||||||
ImportResolver.EnterFile(file);
|
ImportResolver.EnterFile(file);
|
||||||
var parser = new sunParser();
|
var parser = new sunParser();
|
||||||
var tree = parser.Parse(file);
|
var tree = parser.Parse(file);
|
||||||
mVarCount += tree.MaxLocalCount;
|
|
||||||
tree.Compile(this);
|
tree.Compile(this);
|
||||||
ImportResolver.ExitFile(file);
|
ImportResolver.ExitFile(file);
|
||||||
}
|
}
|
||||||
|
@ -271,7 +269,7 @@ namespace arookas
|
||||||
mWriter.WriteS32(DataTable.Count);
|
mWriter.WriteS32(DataTable.Count);
|
||||||
mWriter.Write32(mSymbolOffset);
|
mWriter.Write32(mSymbolOffset);
|
||||||
mWriter.WriteS32(SymbolTable.Count);
|
mWriter.WriteS32(SymbolTable.Count);
|
||||||
mWriter.WriteS32(mVarCount);
|
mWriter.WriteS32(SymbolTable.VariableCount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue