From 5d2de689766c4b88545effa45f439f5d2a3a080b Mon Sep 17 00:00:00 2001 From: Alex Barney Date: Wed, 30 Oct 2019 14:43:03 -0500 Subject: [PATCH] Slight renamings --- src/LibHac/Common/BlitSpan.cs | 2 +- src/LibHac/Fs/Shim/SaveDataManagement.cs | 6 +++--- src/LibHac/Ns/ApplicationControlProperty.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/LibHac/Common/BlitSpan.cs b/src/LibHac/Common/BlitSpan.cs index 78940967..d801d95a 100644 --- a/src/LibHac/Common/BlitSpan.cs +++ b/src/LibHac/Common/BlitSpan.cs @@ -78,7 +78,7 @@ namespace LibHac.Common } /// - /// Returns a view of the element at index as a of bytes. + /// Returns a view of the element at index as a of bytes. /// /// The zero-based index of the element. /// A byte span representation of the element. diff --git a/src/LibHac/Fs/Shim/SaveDataManagement.cs b/src/LibHac/Fs/Shim/SaveDataManagement.cs index 01d3c9a8..f478772a 100644 --- a/src/LibHac/Fs/Shim/SaveDataManagement.cs +++ b/src/LibHac/Fs/Shim/SaveDataManagement.cs @@ -9,7 +9,7 @@ namespace LibHac.Fs.Shim { 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) { return fs.RunOperationWithAccessLog(LocalAccessLogMode.System, @@ -19,7 +19,7 @@ namespace LibHac.Fs.Shim var attribute = new SaveDataAttribute { - TitleId = titleId, + TitleId = applicationId, UserId = userId, Type = SaveDataType.SaveData }; @@ -42,7 +42,7 @@ namespace LibHac.Fs.Shim 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, diff --git a/src/LibHac/Ns/ApplicationControlProperty.cs b/src/LibHac/Ns/ApplicationControlProperty.cs index 4a150d69..cb8d743f 100644 --- a/src/LibHac/Ns/ApplicationControlProperty.cs +++ b/src/LibHac/Ns/ApplicationControlProperty.cs @@ -79,7 +79,7 @@ namespace LibHac.Ns [FieldOffset(0x3000), DebuggerBrowsable(DebuggerBrowsableState.Never)] private Padding200 _padding1; [FieldOffset(0x3200), DebuggerBrowsable(DebuggerBrowsableState.Never)] private Padding100 _padding2; - public Span GetTitles() => SpanHelpers.CreateSpan(ref Unsafe.As(ref _titles), TitleCount); + public Span Titles => SpanHelpers.CreateSpan(ref Unsafe.As(ref _titles), TitleCount); public U8SpanMutable Isbn => new U8SpanMutable(SpanHelpers.CreateSpan(ref _isbn, IsbnSize)); public Span RatingAge => SpanHelpers.CreateSpan(ref _ratingAge, RatingAgeCount); public U8SpanMutable DisplayVersion => new U8SpanMutable(SpanHelpers.CreateSpan(ref _displayVersion, DisplayVersionSize));