Skip to content

Wrap use of decompile to resolve entity-names #22

@MikeTaylor

Description

@MikeTaylor

As noted in PR #16, the play function in the top-level scottkit program invokes decompile (discarding its output) to force resolution of entity names in the same order that they will be resolved in decompilation:

def play(game)
  # Decompile (and discard result) to get entity names resolved in
  # right order.  This ensures that debugging output that uses these
  # names will use them in the same way as decompiler output.
  dummy = StringIO.new
  game.decompile(dummy)
  game.play
end

I need to look into this, figure out why it's happening, and (if necessary) make some kind of canonicalise_entites method that does this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions