Skip to content

Commit

Permalink
GTA disassembler fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maybegreat48 committed Nov 26, 2023
1 parent 147e4a5 commit 24cd62c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion GTA V Script Decompiler/Disassembly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ private string DisassembleInstruction(Instruction instruction)
{
var bytes = "";

bytes += ((uint)instruction.UnmappedOpcode).ToString("X").PadLeft(2, '0');
if (Properties.Settings.Default.IsRDR2)
bytes += ((uint)instruction.UnmappedOpcode).ToString("X").PadLeft(2, '0');
else
bytes += ((uint)instruction.OriginalOpcode).ToString("X").PadLeft(2, '0');

var i = 0;
foreach (var op in instruction.Operands)
Expand Down

0 comments on commit 24cd62c

Please sign in to comment.