Fix up formatting

This commit is contained in:
EliseZeroTwo 2020-03-27 08:45:00 +01:00
commit 1dc4d2c586
4 changed files with 14 additions and 15 deletions

View file

@ -544,7 +544,6 @@ namespace Ryujinx.HLE.HOS
Logger.PrintInfo(LogClass.Loader, $"Loading {file.Name}..."); Logger.PrintInfo(LogClass.Loader, $"Loading {file.Name}...");
codeFs.OpenFile(out IFile nsoFile, file.FullPath.ToU8Span(), OpenMode.Read).ThrowIfFailure(); codeFs.OpenFile(out IFile nsoFile, file.FullPath.ToU8Span(), OpenMode.Read).ThrowIfFailure();
NxStaticObject staticObject = new NxStaticObject(nsoFile.AsStorage()); NxStaticObject staticObject = new NxStaticObject(nsoFile.AsStorage());
staticObjects.Add(staticObject); staticObjects.Add(staticObject);

View file

@ -1,4 +1,5 @@
using ARMeilleure.Memory; using ARMeilleure.Memory;
using LibHac;
using Ryujinx.Common; using Ryujinx.Common;
using Ryujinx.Common.Logging; using Ryujinx.Common.Logging;
using Ryujinx.HLE.HOS.Kernel.Common; using Ryujinx.HLE.HOS.Kernel.Common;
@ -6,7 +7,6 @@ using Ryujinx.HLE.HOS.Kernel.Memory;
using Ryujinx.HLE.HOS.Kernel.Process; using Ryujinx.HLE.HOS.Kernel.Process;
using Ryujinx.HLE.Loaders.Executables; using Ryujinx.HLE.Loaders.Executables;
using Ryujinx.HLE.Loaders.Npdm; using Ryujinx.HLE.Loaders.Npdm;
using LibHac;
namespace Ryujinx.HLE.HOS namespace Ryujinx.HLE.HOS
{ {

View file

@ -1,16 +1,16 @@
using Ryujinx.HLE.Loaders.Compression;
using System.IO;
using LibHac; using LibHac;
using LibHac.Fs; using LibHac.Fs;
using Ryujinx.HLE.Loaders.Compression;
using System.IO;
namespace Ryujinx.HLE.Loaders.Executables namespace Ryujinx.HLE.Loaders.Executables
{ {
class KernelInitialProcess : Kip, IExecutable class KernelInitialProcess : Kip, IExecutable
{ {
public byte[] Text { get; private set; } public byte[] Text { get; }
public byte[] Ro { get; private set; } public byte[] Ro { get; }
public byte[] Data { get; private set; } public byte[] Data { get; }
public int TextOffset => Header.Sections[0].OutOffset; public int TextOffset => Header.Sections[0].OutOffset;
public int RoOffset => Header.Sections[1].OutOffset; public int RoOffset => Header.Sections[1].OutOffset;
@ -18,7 +18,7 @@ namespace Ryujinx.HLE.Loaders.Executables
public int BssOffset => Header.Sections[3].OutOffset; public int BssOffset => Header.Sections[3].OutOffset;
public int BssSize => Header.Sections[3].DecompressedSize; public int BssSize => Header.Sections[3].DecompressedSize;
public int[] Capabilities { get; set; } public int[] Capabilities { get; }
public KernelInitialProcess(IStorage inStorage) : base(inStorage) public KernelInitialProcess(IStorage inStorage) : base(inStorage)
{ {

View file

@ -1,17 +1,17 @@
using LibHac;
using LibHac.Fs;
using Ryujinx.HLE.Loaders.Compression; using Ryujinx.HLE.Loaders.Compression;
using System; using System;
using System.IO; using System.IO;
using LibHac.Fs;
using LibHac;
namespace Ryujinx.HLE.Loaders.Executables namespace Ryujinx.HLE.Loaders.Executables
{ {
class NxStaticObject : Nso, IExecutable class NxStaticObject : Nso, IExecutable
{ {
public byte[] Text { get; private set; } public byte[] Text { get; }
public byte[] Ro { get; private set; } public byte[] Ro { get; }
public byte[] Data { get; private set; } public byte[] Data { get; }
public int TextOffset => (int)Sections[0].MemoryOffset; public int TextOffset => (int)Sections[0].MemoryOffset;
public int RoOffset => (int)Sections[1].MemoryOffset; public int RoOffset => (int)Sections[1].MemoryOffset;