From 06d3ad80484beda857d7dab566c90d1826f2962d Mon Sep 17 00:00:00 2001 From: Raymond Date: Wed, 22 Sep 2021 17:13:06 -0400 Subject: [PATCH] formatting --- Dalamud/Game/SigScanner.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dalamud/Game/SigScanner.cs b/Dalamud/Game/SigScanner.cs index d6b5a77a3..e35b17cc4 100644 --- a/Dalamud/Game/SigScanner.cs +++ b/Dalamud/Game/SigScanner.cs @@ -144,7 +144,6 @@ namespace Dalamud.Game /// true if the signature was found. public static bool TryScan(IntPtr baseAddress, int size, string signature, out IntPtr result) { - result = IntPtr.Zero; try { result = Scan(baseAddress, size, signature); @@ -152,6 +151,7 @@ namespace Dalamud.Game } catch (KeyNotFoundException) { + result = IntPtr.Zero; return false; } } @@ -193,7 +193,6 @@ namespace Dalamud.Game /// true if the signature was found. public bool TryGetStaticAddressFromSig(string signature, out IntPtr result, int offset = 0) { - result = IntPtr.Zero; try { result = this.GetStaticAddressFromSig(signature, offset); @@ -201,6 +200,7 @@ namespace Dalamud.Game } catch (KeyNotFoundException) { + result = IntPtr.Zero; return false; } } @@ -228,7 +228,6 @@ namespace Dalamud.Game /// true if the signature was found. public bool TryScanData(string signature, out IntPtr result) { - result = IntPtr.Zero; try { result = this.ScanData(signature); @@ -236,6 +235,7 @@ namespace Dalamud.Game } catch (KeyNotFoundException) { + result = IntPtr.Zero; return false; } } @@ -263,7 +263,6 @@ namespace Dalamud.Game /// true if the signature was found. public bool TryScanModule(string signature, out IntPtr result) { - result = IntPtr.Zero; try { result = this.ScanModule(signature); @@ -271,6 +270,7 @@ namespace Dalamud.Game } catch (KeyNotFoundException) { + result = IntPtr.Zero; return false; } } @@ -317,7 +317,6 @@ namespace Dalamud.Game /// true if the signature was found. public bool TryScanText(string signature, out IntPtr result) { - result = IntPtr.Zero; try { result = this.ScanText(signature); @@ -325,6 +324,7 @@ namespace Dalamud.Game } catch (KeyNotFoundException) { + result = IntPtr.Zero; return false; } }