mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-09 01:18:35 +00:00
e3b36db71c
* hle: Some cleanup This PR cleaned up a bit the HLE folder and the VirtualFileSystem one, since we use LibHac, we can use some class of it directly instead of duplicate things. The "Content" of VFS folder is removed since it should be handled in the NCM service directly. A larger cleanup should be done later since there is still be duplicated code here and there. * Fix Headless.SDL2 * Addresses gdkchan feedback
43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using LibHac.Ncm;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Arp
|
|
{
|
|
class ApplicationLaunchProperty
|
|
{
|
|
public ulong TitleId;
|
|
public int Version;
|
|
public byte BaseGameStorageId;
|
|
public byte UpdateGameStorageId;
|
|
#pragma warning disable CS0649
|
|
public short Padding;
|
|
#pragma warning restore CS0649
|
|
|
|
public static ApplicationLaunchProperty Default
|
|
{
|
|
get
|
|
{
|
|
return new ApplicationLaunchProperty
|
|
{
|
|
TitleId = 0x00,
|
|
Version = 0x00,
|
|
BaseGameStorageId = (byte)StorageId.BuiltInSystem,
|
|
UpdateGameStorageId = (byte)StorageId.None
|
|
};
|
|
}
|
|
}
|
|
|
|
public static ApplicationLaunchProperty GetByPid(ServiceCtx context)
|
|
{
|
|
// TODO: Handle ApplicationLaunchProperty as array when pid will be supported and return the right item.
|
|
// For now we can hardcode values, and fix it after GetApplicationLaunchProperty is implemented.
|
|
|
|
return new ApplicationLaunchProperty
|
|
{
|
|
TitleId = context.Device.Application.TitleId,
|
|
Version = 0x00,
|
|
BaseGameStorageId = (byte)StorageId.BuiltInSystem,
|
|
UpdateGameStorageId = (byte)StorageId.None
|
|
};
|
|
}
|
|
}
|
|
} |