tom-seddon / ghouls-revenge

Ghouls: Revenge
3 stars 1 forks source link

Handle nested scopes in bbpp #1

Closed tom-seddon closed 1 month ago

tom-seddon commented 1 year ago

Not a pressing issue, but this is supposed to work, and it doesn't.

  1. 64tass doesn't output stuff in nested scopes unless you do --dump-labels, which the Makefile doesn't
  2. The --dump-labels syntax isn't compatible with bbpp as it stands, as each line has a FILE:LINE:COLUMN: prefix (care when parsing - FILE could contain a : on Windows)
  3. Nested scopes aren't even handled properly in the Python! - what I forgot is that the scope itself has a value, so the Any class is no good. You can't use setattr on int/str/float/etc., but you can derive from those types.

Fixing this would get rid of the stuff in gcommon where it does LevelData_blah_offset=LevelData.blah.

tom-seddon commented 1 month ago

If I haven't fixed it by now, it can be closed.