Alignment and spacing
This commit is contained in:
parent
7a3623c0bf
commit
1ed524dabc
5 changed files with 15 additions and 9 deletions
|
@ -235,8 +235,9 @@ namespace Ryujinx.HLE.HOS
|
||||||
|
|
||||||
TimeServiceManager.Instance.SetupEphemeralNetworkSystemClock();
|
TimeServiceManager.Instance.SetupEphemeralNetworkSystemClock();
|
||||||
|
|
||||||
LocalFileSystem baseFs = new LocalFileSystem(device.FileSystem.GetBasePath());
|
LocalFileSystem serverBaseFs = new LocalFileSystem(device.FileSystem.GetBasePath());
|
||||||
DefaultFsServerObjects fsServerObjects = DefaultFsServerObjects.GetDefaultEmulatedCreators(baseFs, KeySet);
|
|
||||||
|
DefaultFsServerObjects fsServerObjects = DefaultFsServerObjects.GetDefaultEmulatedCreators(serverBaseFs, KeySet);
|
||||||
|
|
||||||
GameCard = fsServerObjects.GameCard;
|
GameCard = fsServerObjects.GameCard;
|
||||||
|
|
||||||
|
|
|
@ -137,7 +137,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs
|
||||||
public ResultCode OpenGameCardStorage(ServiceCtx context)
|
public ResultCode OpenGameCardStorage(ServiceCtx context)
|
||||||
{
|
{
|
||||||
GameCardHandle handle = new GameCardHandle(context.RequestData.ReadInt32());
|
GameCardHandle handle = new GameCardHandle(context.RequestData.ReadInt32());
|
||||||
GameCardPartitionRaw partitionId = (GameCardPartitionRaw) context.RequestData.ReadInt32();
|
GameCardPartitionRaw partitionId = (GameCardPartitionRaw)context.RequestData.ReadInt32();
|
||||||
|
|
||||||
Result result = _baseFileSystemProxy.OpenGameCardStorage(out LibHac.Fs.IStorage storage, handle, partitionId);
|
Result result = _baseFileSystemProxy.OpenGameCardStorage(out LibHac.Fs.IStorage storage, handle, partitionId);
|
||||||
if (result.IsFailure()) return (ResultCode)result.Value;
|
if (result.IsFailure()) return (ResultCode)result.Value;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using LibHac.Fs;
|
using LibHac;
|
||||||
|
using LibHac.Fs;
|
||||||
using LibHac.FsSystem;
|
using LibHac.FsSystem;
|
||||||
using LibHac.FsSystem.NcaUtils;
|
using LibHac.FsSystem.NcaUtils;
|
||||||
using Ryujinx.Common.Logging;
|
using Ryujinx.Common.Logging;
|
||||||
|
@ -8,7 +9,7 @@ using Ryujinx.HLE.Resource;
|
||||||
using Ryujinx.HLE.Utilities;
|
using Ryujinx.HLE.Utilities;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using LibHac;
|
|
||||||
using static Ryujinx.HLE.HOS.Services.Time.TimeZone.TimeZoneRule;
|
using static Ryujinx.HLE.HOS.Services.Time.TimeZone.TimeZoneRule;
|
||||||
|
|
||||||
namespace Ryujinx.HLE.HOS.Services.Time.TimeZone
|
namespace Ryujinx.HLE.HOS.Services.Time.TimeZone
|
||||||
|
|
|
@ -154,6 +154,7 @@ namespace Ryujinx.UI
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
controlFs.OpenFile(out IFile icon, $"/icon_{DesiredTitleLanguage}.dat", OpenMode.Read).ThrowIfFailure();
|
controlFs.OpenFile(out IFile icon, $"/icon_{DesiredTitleLanguage}.dat", OpenMode.Read).ThrowIfFailure();
|
||||||
|
|
||||||
using (MemoryStream stream = new MemoryStream())
|
using (MemoryStream stream = new MemoryStream())
|
||||||
{
|
{
|
||||||
icon.AsStream().CopyTo(stream);
|
icon.AsStream().CopyTo(stream);
|
||||||
|
@ -170,6 +171,7 @@ namespace Ryujinx.UI
|
||||||
}
|
}
|
||||||
|
|
||||||
controlFs.OpenFile(out IFile icon, entry.FullPath, OpenMode.Read).ThrowIfFailure();
|
controlFs.OpenFile(out IFile icon, entry.FullPath, OpenMode.Read).ThrowIfFailure();
|
||||||
|
|
||||||
using (MemoryStream stream = new MemoryStream())
|
using (MemoryStream stream = new MemoryStream())
|
||||||
{
|
{
|
||||||
icon.AsStream().CopyTo(stream);
|
icon.AsStream().CopyTo(stream);
|
||||||
|
@ -362,7 +364,9 @@ namespace Ryujinx.UI
|
||||||
foreach (DirectoryEntryEx fileEntry in Pfs.EnumerateEntries("/", "*.nca"))
|
foreach (DirectoryEntryEx fileEntry in Pfs.EnumerateEntries("/", "*.nca"))
|
||||||
{
|
{
|
||||||
Pfs.OpenFile(out IFile ncaFile, fileEntry.FullPath, OpenMode.Read).ThrowIfFailure();
|
Pfs.OpenFile(out IFile ncaFile, fileEntry.FullPath, OpenMode.Read).ThrowIfFailure();
|
||||||
|
|
||||||
Nca nca = new Nca(KeySet, ncaFile.AsStorage());
|
Nca nca = new Nca(KeySet, ncaFile.AsStorage());
|
||||||
|
|
||||||
if (nca.Header.ContentType == NcaContentType.Control)
|
if (nca.Header.ContentType == NcaContentType.Control)
|
||||||
{
|
{
|
||||||
controlNca = nca;
|
controlNca = nca;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue