This commit is contained in:
CasualPokePlayer 2021-12-13 17:03:40 -08:00
parent ebddab35d2
commit ee0dea46bc
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
public string FirmwareUsername
{
get => _firmwareusername;
set => _firmwareusername = value.Substring(0, Math.Min(10, value.Length));
set => _firmwareusername = value.Length != 0 ? value.Substring(0, Math.Min(10, value.Length)) : _firmwareusername.Substring(0, 1);
}
public enum Language : int

View File

@ -90,7 +90,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.NDS
fwSettings.FirmwareBirthdayMonth = _syncSettings.FirmwareBirthdayMonth;
fwSettings.FirmwareBirthdayDay = _syncSettings.FirmwareBirthdayDay;
fwSettings.FirmwareFavouriteColour = _syncSettings.FirmwareFavouriteColour;
var message = Encoding.UTF8.GetBytes(_syncSettings.FirmwareMessage);
var message = _syncSettings.FirmwareMessage.Length != 0 ? Encoding.UTF8.GetBytes(_syncSettings.FirmwareMessage) : new byte[1] { 0 };
fwSettings.FirmwareMessageLength = message.Length;
_exe.AddReadonlyFile(roms[0], "game.rom");