Skip to content

Commit

Permalink
Make variable name clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
Miepee committed Mar 30, 2022
1 parent 6e3b692 commit 25b8a2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions UndertaleModCli/Program.UMTLibInherited.cs
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ public string SimpleTextInput(string title, string label, string defaultValue, b
}
else
{
bool isShiftAndEnterPressed = false;
bool isEnterWithoutShiftPressed = false;
ConsoleKeyInfo keyInfo;
do
{
Expand All @@ -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
{
Expand All @@ -494,7 +494,7 @@ public string SimpleTextInput(string title, string label, string defaultValue, b
result += keyInfo.KeyChar;
}

} while (!isShiftAndEnterPressed);
} while (!isEnterWithoutShiftPressed);
}

Console.WriteLine("--------------------------------------------------");
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 25b8a2e

Please sign in to comment.