From 25b8a2ef028d29acee31e6406c12c139627332a4 Mon Sep 17 00:00:00 2001 From: Miepee <38186597+Miepee@users.noreply.github.com> Date: Wed, 30 Mar 2022 12:48:26 +0200 Subject: [PATCH] Make variable name clearer --- UndertaleModCli/Program.UMTLibInherited.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/UndertaleModCli/Program.UMTLibInherited.cs b/UndertaleModCli/Program.UMTLibInherited.cs index 85d869fe8..d20678554 100644 --- a/UndertaleModCli/Program.UMTLibInherited.cs +++ b/UndertaleModCli/Program.UMTLibInherited.cs @@ -462,7 +462,7 @@ public string SimpleTextInput(string title, string label, string defaultValue, b } else { - bool isShiftAndEnterPressed = false; + bool isEnterWithoutShiftPressed = false; ConsoleKeyInfo keyInfo; do { @@ -471,7 +471,7 @@ public string SimpleTextInput(string title, string label, string defaultValue, b // If Enter is pressed without shift if (((keyInfo.Modifiers & ConsoleModifiers.Shift) == 0) && (keyInfo.Key == ConsoleKey.Enter)) - isShiftAndEnterPressed = true; + isEnterWithoutShiftPressed = true; else { @@ -494,7 +494,7 @@ public string SimpleTextInput(string title, string label, string defaultValue, b result += keyInfo.KeyChar; } - } while (!isShiftAndEnterPressed); + } while (!isEnterWithoutShiftPressed); } Console.WriteLine("--------------------------------------------------"); @@ -702,7 +702,7 @@ public string DummyString() return ""; } - // Copy-pasted from GUI. TODO: Should probably get shared at one point. + // Copy-pasted from GUI. TODO: Should probably get shared at one point, but there are some GUI only attributes accessed there and I don't want to touch the methods. #region Helper functions for Code replacing void ImportCode(string codeName, string gmlCode, bool IsGML = true, bool doParse = true, bool destroyASM = true, bool CheckDecompiler = false, bool throwOnError = false)