Skip to content

Commit

Permalink
Simplify nickname assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacobwasbeast committed Nov 10, 2024
1 parent d3c0600 commit 721f304
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Ryujinx.HLE/HOS/Services/Nfc/Nfp/VirtualAmiibo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,7 @@ public static CommonInfo GetCommonInfo(string amiiboId)
public static RegisterInfo GetRegisterInfo(ITickSource tickSource, string amiiboId, string userName)
{
VirtualAmiiboFile amiiboFile = LoadAmiiboFile(amiiboId);
string nickname = "Ryujinx";
if (amiiboFile.NickName != null)
{
nickname = amiiboFile.NickName;
}
string nickname = amiiboFile.NickName ?? "Ryujinx";
UtilityImpl utilityImpl = new(tickSource);
CharInfo charInfo = new();

Expand Down

0 comments on commit 721f304

Please sign in to comment.