mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 11:04:00 +00:00
Add notes on things to assert
This commit is contained in:
parent
4f0578d402
commit
65592a5d2a
1 changed files with 3 additions and 0 deletions
|
|
@ -219,6 +219,7 @@ function readConstants({ makiFile, variables }) {
|
|||
while (count--) {
|
||||
const i = makiFile.readUInt32LE();
|
||||
const variable = variables[i];
|
||||
// TODO: Assert this is of type string.
|
||||
const value = makiFile.readString();
|
||||
// TODO: Don't mutate
|
||||
variable.setValue(value);
|
||||
|
|
@ -316,6 +317,8 @@ function parse(data) {
|
|||
const bindings = readBindings(makiFile);
|
||||
const commands = decodeCode({ makiFile });
|
||||
|
||||
// TODO: Assert that we are at the end of the maki file
|
||||
|
||||
// Map binary offsets to command indexes.
|
||||
// Some bindings/functions ask us to jump to a place in the binary data and
|
||||
// start executing. However, we want to do all the parsing up front, and just
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue