mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Slight renamings
This commit is contained in:
parent
5b6ca9c160
commit
5d2de68976
3 changed files with 5 additions and 5 deletions
|
@ -78,7 +78,7 @@ namespace LibHac.Common
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a view of the element at index <see cref="elementIndex"/> as a <see cref="Span{T}"/> of bytes.
|
/// Returns a view of the element at index <paramref name="elementIndex"/> as a <see cref="Span{T}"/> of bytes.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="elementIndex">The zero-based index of the element.</param>
|
/// <param name="elementIndex">The zero-based index of the element.</param>
|
||||||
/// <returns>A byte span representation of the element.</returns>
|
/// <returns>A byte span representation of the element.</returns>
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace LibHac.Fs.Shim
|
||||||
{
|
{
|
||||||
public static class SaveDataManagement
|
public static class SaveDataManagement
|
||||||
{
|
{
|
||||||
public static Result CreateSaveData(this FileSystemClient fs, TitleId titleId, UserId userId, TitleId ownerId,
|
public static Result CreateSaveData(this FileSystemClient fs, TitleId applicationId, UserId userId, TitleId ownerId,
|
||||||
long size, long journalSize, uint flags)
|
long size, long journalSize, uint flags)
|
||||||
{
|
{
|
||||||
return fs.RunOperationWithAccessLog(LocalAccessLogMode.System,
|
return fs.RunOperationWithAccessLog(LocalAccessLogMode.System,
|
||||||
|
@ -19,7 +19,7 @@ namespace LibHac.Fs.Shim
|
||||||
|
|
||||||
var attribute = new SaveDataAttribute
|
var attribute = new SaveDataAttribute
|
||||||
{
|
{
|
||||||
TitleId = titleId,
|
TitleId = applicationId,
|
||||||
UserId = userId,
|
UserId = userId,
|
||||||
Type = SaveDataType.SaveData
|
Type = SaveDataType.SaveData
|
||||||
};
|
};
|
||||||
|
@ -42,7 +42,7 @@ namespace LibHac.Fs.Shim
|
||||||
|
|
||||||
return fsProxy.CreateSaveDataFileSystem(ref attribute, ref createInfo, ref metaInfo);
|
return fsProxy.CreateSaveDataFileSystem(ref attribute, ref createInfo, ref metaInfo);
|
||||||
},
|
},
|
||||||
() => $", applicationid: 0x{titleId.Value:X}, userid: 0x{userId}, save_data_owner_id: 0x{ownerId.Value:X}, save_data_size: {size}, save_data_journal_size: {journalSize}, save_data_flags: 0x{flags:x8}");
|
() => $", applicationid: 0x{applicationId.Value:X}, userid: 0x{userId}, save_data_owner_id: 0x{ownerId.Value:X}, save_data_size: {size}, save_data_journal_size: {journalSize}, save_data_flags: 0x{flags:x8}");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Result CreateSaveData(this FileSystemClient fs, TitleId applicationId, UserId userId, TitleId ownerId,
|
public static Result CreateSaveData(this FileSystemClient fs, TitleId applicationId, UserId userId, TitleId ownerId,
|
||||||
|
|
|
@ -79,7 +79,7 @@ namespace LibHac.Ns
|
||||||
[FieldOffset(0x3000), DebuggerBrowsable(DebuggerBrowsableState.Never)] private Padding200 _padding1;
|
[FieldOffset(0x3000), DebuggerBrowsable(DebuggerBrowsableState.Never)] private Padding200 _padding1;
|
||||||
[FieldOffset(0x3200), DebuggerBrowsable(DebuggerBrowsableState.Never)] private Padding100 _padding2;
|
[FieldOffset(0x3200), DebuggerBrowsable(DebuggerBrowsableState.Never)] private Padding100 _padding2;
|
||||||
|
|
||||||
public Span<ApplicationControlTitle> GetTitles() => SpanHelpers.CreateSpan(ref Unsafe.As<byte, ApplicationControlTitle>(ref _titles), TitleCount);
|
public Span<ApplicationControlTitle> Titles => SpanHelpers.CreateSpan(ref Unsafe.As<byte, ApplicationControlTitle>(ref _titles), TitleCount);
|
||||||
public U8SpanMutable Isbn => new U8SpanMutable(SpanHelpers.CreateSpan(ref _isbn, IsbnSize));
|
public U8SpanMutable Isbn => new U8SpanMutable(SpanHelpers.CreateSpan(ref _isbn, IsbnSize));
|
||||||
public Span<sbyte> RatingAge => SpanHelpers.CreateSpan(ref _ratingAge, RatingAgeCount);
|
public Span<sbyte> RatingAge => SpanHelpers.CreateSpan(ref _ratingAge, RatingAgeCount);
|
||||||
public U8SpanMutable DisplayVersion => new U8SpanMutable(SpanHelpers.CreateSpan(ref _displayVersion, DisplayVersionSize));
|
public U8SpanMutable DisplayVersion => new U8SpanMutable(SpanHelpers.CreateSpan(ref _displayVersion, DisplayVersionSize));
|
||||||
|
|
Loading…
Reference in a new issue