Skip to content

Commit

Permalink
Merge pull request #619 from mbbsemu/gender-fix
Browse files Browse the repository at this point in the history
Gender Fix
  • Loading branch information
fletcherm authored Jan 14, 2024
2 parents e7ce7d5 + 00347eb commit afdb974
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
10 changes: 0 additions & 10 deletions MBBSEmu/Assets/crashDetailsAPI.txt

This file was deleted.

4 changes: 2 additions & 2 deletions MBBSEmu/HostProcess/HostRoutines/MenuRoutines.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions MBBSEmu/MBBSEmu.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<None Remove="Assets\BBSGEN.DB" />
<None Remove="Assets\BBSUSR.DB" />
<None Remove="Assets\commandLineHelp.txt" />
<None Remove="Assets\crashDetailsAPI.txt" />
<None Remove="Assets\crashReportTemplate.txt" />
<None Remove="Assets\fseDefaultFormats.txt" />
<None Remove="Assets\fseFieldSpec.txt" />
Expand Down Expand Up @@ -45,7 +44,6 @@
<EmbeddedResource Include="Assets\BBSGEN.DB" />
<EmbeddedResource Include="Assets\BBSUSR.DB" />
<EmbeddedResource Include="Assets\commandLineHelp.txt" />
<EmbeddedResource Include="Assets\crashDetailsAPI.txt" />
<EmbeddedResource Include="Assets\crashReportTemplate.txt" />
<EmbeddedResource Include="Assets\fseDefaultFormats.txt" />
<EmbeddedResource Include="Assets\fseFieldSpec.txt" />
Expand Down

0 comments on commit afdb974

Please sign in to comment.