diff options
| author | Alex Barney <thealexbarney@gmail.com> | 2020-09-01 13:08:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-01 17:08:59 -0300 |
| commit | 1bb7fdaca43c5dcb016dfb9fd13319f4638cb0d2 (patch) | |
| tree | c63faefdea79b66e356b4b3c9c9f1f736c9bf151 /Ryujinx.HLE/HOS/ApplicationLoader.cs | |
| parent | 6cc187da594a620f89df38ff537511138b03c9dc (diff) | |
Update to LibHac 0.12.0 (#1485)
* Update to LibHac 0.12.0
* Auto-formatting. Fixed a bug in SetApplicationCopyrightImage
Diffstat (limited to 'Ryujinx.HLE/HOS/ApplicationLoader.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/ApplicationLoader.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Ryujinx.HLE/HOS/ApplicationLoader.cs b/Ryujinx.HLE/HOS/ApplicationLoader.cs index b52678de..16c9664d 100644 --- a/Ryujinx.HLE/HOS/ApplicationLoader.cs +++ b/Ryujinx.HLE/HOS/ApplicationLoader.cs @@ -3,9 +3,9 @@ using LibHac; using LibHac.Account; using LibHac.Common; using LibHac.Fs; +using LibHac.Fs.Fsa; using LibHac.FsSystem; using LibHac.FsSystem.NcaUtils; -using LibHac.Ncm; using LibHac.Ns; using Ryujinx.Common.Configuration; using Ryujinx.Common.Logging; @@ -20,6 +20,7 @@ using System.Linq; using System.Reflection; using static LibHac.Fs.ApplicationSaveDataManagement; +using ApplicationId = LibHac.Ncm.ApplicationId; namespace Ryujinx.HLE.HOS { @@ -73,7 +74,7 @@ namespace Ryujinx.HLE.HOS if (TitleId != 0) { - EnsureSaveData(new TitleId(TitleId)); + EnsureSaveData(new ApplicationId(TitleId)); } LoadExeFs(codeFs, metaData); @@ -333,7 +334,7 @@ namespace Ryujinx.HLE.HOS if (TitleId != 0) { - EnsureSaveData(new TitleId(TitleId)); + EnsureSaveData(new ApplicationId(TitleId)); } LoadExeFs(codeFs, metaData); @@ -549,7 +550,7 @@ namespace Ryujinx.HLE.HOS } } - private Result EnsureSaveData(TitleId titleId) + private Result EnsureSaveData(ApplicationId applicationId) { Logger.Info?.Print(LogClass.Application, "Ensuring required savedata exists."); @@ -557,7 +558,7 @@ namespace Ryujinx.HLE.HOS ref ApplicationControlProperty control = ref ControlData.Value; - if (Util.IsEmpty(ControlData.ByteSpan)) + if (LibHac.Utilities.IsEmpty(ControlData.ByteSpan)) { // If the current application doesn't have a loaded control property, create a dummy one // and set the savedata sizes so a user savedata will be created. @@ -573,7 +574,7 @@ namespace Ryujinx.HLE.HOS FileSystemClient fs = _fileSystem.FsClient; - Result rc = fs.EnsureApplicationCacheStorage(out _, titleId, ref control); + Result rc = fs.EnsureApplicationCacheStorage(out _, applicationId, ref control); if (rc.IsFailure()) { @@ -582,7 +583,7 @@ namespace Ryujinx.HLE.HOS return rc; } - rc = EnsureApplicationSaveData(fs, out _, titleId, ref control, ref user); + rc = EnsureApplicationSaveData(fs, out _, applicationId, ref control, ref user); if (rc.IsFailure()) { |
