From afff896e2ca033991631f4fb7a3f060b95a15dce Mon Sep 17 00:00:00 2001 From: "Eric P. Nusbaum" Date: Fri, 12 Jan 2024 20:35:34 -0500 Subject: [PATCH 1/2] Remove Unused File --- MBBSEmu/Assets/crashDetailsAPI.txt | 10 ---------- MBBSEmu/MBBSEmu.csproj | 2 -- 2 files changed, 12 deletions(-) delete mode 100644 MBBSEmu/Assets/crashDetailsAPI.txt diff --git a/MBBSEmu/Assets/crashDetailsAPI.txt b/MBBSEmu/Assets/crashDetailsAPI.txt deleted file mode 100644 index 010403ba..00000000 --- a/MBBSEmu/Assets/crashDetailsAPI.txt +++ /dev/null @@ -1,10 +0,0 @@ -This exception was thrown because MBBSEmu doesn't yet support an API that this module attempted to use. -Please send the above crash information to The MajorBBS Emulation Project by emailing eric@mbbsemu.com -or by dropping by the Discord server. - -You can view API Support Information by library and ordinal (provided in the exception above), by visiting -the API Support Information section of the website at the following URL: - -https://www.mbbsemu.com/ApiInformation - -Thanks! \ No newline at end of file diff --git a/MBBSEmu/MBBSEmu.csproj b/MBBSEmu/MBBSEmu.csproj index 2cceb6ef..2029c7df 100644 --- a/MBBSEmu/MBBSEmu.csproj +++ b/MBBSEmu/MBBSEmu.csproj @@ -12,7 +12,6 @@ - @@ -45,7 +44,6 @@ - From 00347ebe1b08ec2aa852a483422f9cc63f86bda3 Mon Sep 17 00:00:00 2001 From: "Eric P. Nusbaum" Date: Fri, 12 Jan 2024 20:41:38 -0500 Subject: [PATCH 2/2] Fix where gender input is always handles as caps --- MBBSEmu/HostProcess/HostRoutines/MenuRoutines.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MBBSEmu/HostProcess/HostRoutines/MenuRoutines.cs b/MBBSEmu/HostProcess/HostRoutines/MenuRoutines.cs index 4fb536ff..345632c6 100644 --- a/MBBSEmu/HostProcess/HostRoutines/MenuRoutines.cs +++ b/MBBSEmu/HostProcess/HostRoutines/MenuRoutines.cs @@ -582,9 +582,9 @@ private void SignupGenderInput(SessionBase session) { if (session.GetStatus() != EnumUserStatus.CR_TERMINATED_STRING_AVAILABLE) return; - var inputValue = Encoding.ASCII.GetString(session.InputBuffer.ToArray()); + var inputValue = Encoding.ASCII.GetString(session.InputBuffer.ToArray()).ToUpper(); - if (inputValue.ToUpper() is not ("M" or "F")) + if (inputValue is not ("M" or "F")) { session.SendToClient("\r\n|RED||B|Please enter a valid gender selection ('M' or 'F').\r\n|RESET|".EncodeToANSIArray()); session.SessionState = EnumSessionState.SignupGenderDisplay;