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/Loaders/Executables/KipExecutable.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/Loaders/Executables/KipExecutable.cs')
| -rw-r--r-- | Ryujinx.HLE/Loaders/Executables/KipExecutable.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Ryujinx.HLE/Loaders/Executables/KipExecutable.cs b/Ryujinx.HLE/Loaders/Executables/KipExecutable.cs index a44b7c48..292e360b 100644 --- a/Ryujinx.HLE/Loaders/Executables/KipExecutable.cs +++ b/Ryujinx.HLE/Loaders/Executables/KipExecutable.cs @@ -1,5 +1,5 @@ using LibHac.Fs; -using LibHac.Loader; +using LibHac.Kernel; using System; namespace Ryujinx.HLE.Loaders.Executables @@ -31,6 +31,7 @@ namespace Ryujinx.HLE.Loaders.Executables public byte IdealCoreId { get; } public int Version { get; } public string Name { get; } + public KipExecutable(IStorage inStorage) { KipReader reader = new KipReader(); @@ -70,11 +71,11 @@ namespace Ryujinx.HLE.Loaders.Executables DataSize = DecompressSection(reader, KipReader.SegmentType.Data, DataOffset, Program); } - private static int DecompressSection(KipReader reader, KipReader.SegmentType segmentType, int offset, byte[] Program) + private static int DecompressSection(KipReader reader, KipReader.SegmentType segmentType, int offset, byte[] program) { reader.GetSegmentSize(segmentType, out int uncompressedSize).ThrowIfFailure(); - var span = Program.AsSpan().Slice(offset, uncompressedSize); + var span = program.AsSpan().Slice(offset, uncompressedSize); reader.ReadSegment(segmentType, span).ThrowIfFailure(); |
