From 780345863efc8b1200504cc71ba75cc9da04bff5 Mon Sep 17 00:00:00 2001 From: arookas Date: Mon, 1 Feb 2016 04:41:06 -0500 Subject: [PATCH] Added return value to WriteJmp --- sbdump/main.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbdump/main.cs b/sbdump/main.cs index bd8933a..5fc572d 100644 --- a/sbdump/main.cs +++ b/sbdump/main.cs @@ -175,7 +175,7 @@ namespace arookas { case 1: sWriter.Write(" # local{0}", data); break; } } - static void WriteJmp(uint ofs) { + static uint WriteJmp(uint ofs) { var dest = sReader.Read32(); var symbol = FetchSymbol(i => i.Data == ofs); if (ofs > 0 && symbol != null) { @@ -185,6 +185,7 @@ namespace arookas { else { sWriter.Write(" ${0:X8}", dest); } + return dest; } static void WriteData() { Console.WriteLine("Outputting .data...");