fix #3030
This commit is contained in:
parent
ebddab35d2
commit
ee0dea46bc
|
@ -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
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue