Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap use of decompile to resolve entity-names #22

Open
MikeTaylor opened this issue Oct 24, 2017 · 0 comments
Open

Wrap use of decompile to resolve entity-names #22

MikeTaylor opened this issue Oct 24, 2017 · 0 comments

Comments

@MikeTaylor
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant