misc: chore: Fix object creation in HLE project

This commit is contained in:
Evan Husted
2025-01-26 15:15:26 -06:00
parent f1fd5c9366
commit beab133c8d
48 changed files with 194 additions and 194 deletions

View File

@@ -60,7 +60,7 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc
}
}
public void AddUser(string name, byte[] image, UserId userId = new UserId())
public void AddUser(string name, byte[] image, UserId userId = new())
{
if (userId.IsNull)
{
@@ -194,7 +194,7 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc
SaveDataFilter saveDataFilter = SaveDataFilter.Make(programId: default, saveType: default,
new LibHac.Fs.UserId((ulong)userId.High, (ulong)userId.Low), saveDataId: default, index: default);
using UniqueRef<SaveDataIterator> saveDataIterator = new UniqueRef<SaveDataIterator>();
using UniqueRef<SaveDataIterator> saveDataIterator = new();
_horizonClient.Fs.OpenSaveDataIterator(ref saveDataIterator.Ref, SaveDataSpaceId.User, in saveDataFilter).ThrowIfFailure();

View File

@@ -51,7 +51,7 @@ namespace Ryujinx.HLE.HOS.Services.Account.Acc.AccountService
byte[] deviceAccountId = new byte[0x10];
RandomNumberGenerator.Fill(deviceId);
SecurityTokenDescriptor descriptor = new SecurityTokenDescriptor
SecurityTokenDescriptor descriptor = new()
{
Subject = new GenericIdentity(Convert.ToHexString(rawUserId).ToLower()),
SigningCredentials = credentials,