0e93a51030
* bcat:u: Implement EnumerateDeliveryCacheDirectory Basic implementation `EnumerateDeliveryCacheDirectory` call to `IDeliveryCacheStorageService` according to RE. (close #622) I've added some comments in the whole service for when we'll implement a real bcat implementation. For now, all games who use it isn't playable because of GPU. * Use Array instead of List * Add ApplicationLaunchPropertyHelper * Fix helper * Fix helper 2 * Fix ApplicationLaunchProperty Default * Fix ApplicationLaunchProperty 2 * Fix folder
43 lines
No EOL
1.4 KiB
C#
43 lines
No EOL
1.4 KiB
C#
using Ryujinx.HLE.FileSystem;
|
|
using Ryujinx.HLE.Utilities;
|
|
using System;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Glue
|
|
{
|
|
class ApplicationLaunchProperty
|
|
{
|
|
public long TitleId;
|
|
public int Version;
|
|
public byte BaseGameStorageId;
|
|
public byte UpdateGameStorageId;
|
|
public short Padding;
|
|
|
|
public static ApplicationLaunchProperty Default
|
|
{
|
|
get
|
|
{
|
|
return new ApplicationLaunchProperty
|
|
{
|
|
TitleId = 0x00,
|
|
Version = 0x00,
|
|
BaseGameStorageId = (byte)StorageId.NandSystem,
|
|
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 = BitConverter.ToInt64(StringUtils.HexToBytes(context.Device.System.TitleID), 0),
|
|
Version = 0x00,
|
|
BaseGameStorageId = (byte)StorageId.NandSystem,
|
|
UpdateGameStorageId = (byte)StorageId.None
|
|
};
|
|
}
|
|
}
|
|
} |