From 24cd62c49ce733c491cca67807885800bf7fafe3 Mon Sep 17 00:00:00 2001 From: maybegreat48 Date: Sun, 26 Nov 2023 08:22:33 -0500 Subject: [PATCH] GTA disassembler fix --- GTA V Script Decompiler/Disassembly.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GTA V Script Decompiler/Disassembly.cs b/GTA V Script Decompiler/Disassembly.cs index 645daa5..e209e24 100644 --- a/GTA V Script Decompiler/Disassembly.cs +++ b/GTA V Script Decompiler/Disassembly.cs @@ -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)