mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-11-27 20:19:10 +01:00
63b24b4af2
* Use savedata FS commands from LibHac * Add EnsureSaveData. Use ApplicationControlProperty struct * Add a function to migrate to the new directory layout * LibHac update * Change backup structure * Don't create UI files in the save path * Update RyuFs paths * Add GetProgramIndexForAccessLog Ryujinx only runs one program at a time, so always return values reflecting that * Load control NCA when loading from an NSP * Skip over UI stats when exiting * Set TitleName and TitleId in more cases. Fix TitleID naming style * Completely comment out GUI play stats code * rebase * Update LibHac * Update LibHac * Revert UI changes * Do migration automatically at startup * Rename RyuFs directory to Ryujinx * Update RyuFs text * Store savedata paths in the GUI * Make "Open Save Directory" work * Use a dummy NACP in EnsureSaveData if one is not loaded * Remove manual migration button * Respond to feedback * Don't read the installer config to get a version string * Delete nuget.config * Exclude 'sdcard' and 'bis' during migration Co-authored-by: Thog <thog@protonmail.com>
24 lines
No EOL
787 B
C#
24 lines
No EOL
787 B
C#
namespace Ryujinx.HLE.HOS.Services.Ns
|
|
{
|
|
[Service("ns:am")]
|
|
class IApplicationManagerInterface : IpcService
|
|
{
|
|
public IApplicationManagerInterface(ServiceCtx context) { }
|
|
|
|
[Command(400)]
|
|
// GetApplicationControlData(u8, u64) -> (unknown<4>, buffer<unknown, 6>)
|
|
public ResultCode GetApplicationControlData(ServiceCtx context)
|
|
{
|
|
byte source = (byte)context.RequestData.ReadInt64();
|
|
ulong titleId = (byte)context.RequestData.ReadUInt64();
|
|
|
|
long position = context.Request.ReceiveBuff[0].Position;
|
|
|
|
byte[] nacpData = context.Device.System.ControlData.ByteSpan.ToArray();
|
|
|
|
context.Memory.WriteBytes(position, nacpData);
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
} |