Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentHammerHUN committed Aug 3, 2019
1 parent e3c8522 commit 6e93e33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Rhydon.Core/Parser/KoiHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void ReadReferences(RhydonContext ctx, int count) {
var token = FromCodedToken(ctx.ReadCompressedUint());
var resolved = (IMemberRef)ctx.Module.ResolveToken(token);

ctx.Logger.Debug($"Reference[{id:D3}]: Token: 0x{token:X} | MemberRef: {resolved.Name}");
ctx.Logger.Debug($"Reference[{id:D3}]: Token: 0x{token:X8} | MemberRef: {resolved.Name}");
References[id] = resolved;
}
}
Expand Down
3 changes: 3 additions & 0 deletions Rhydon.Emulator/KoiEmulator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@ public void EmulateNext() {
_ctx.Logger.Debug(code.ToString());
_handlers[code].Emulate(_emuCtx);
}

internal IKoiHandler Lookup(byte code) =>
_handlers[_ctx.Map[code]];
}
}

0 comments on commit 6e93e33

Please sign in to comment.