mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-29 12:03:04 +00:00
Implement GetSystemClockContext
This commit is contained in:
parent
e581abb2f5
commit
63d87783de
1 changed files with 18 additions and 2 deletions
|
@ -18,7 +18,8 @@ namespace Ryujinx.HLE.OsHle.Services.Time
|
||||||
{
|
{
|
||||||
m_Commands = new Dictionary<int, ServiceProcessRequest>()
|
m_Commands = new Dictionary<int, ServiceProcessRequest>()
|
||||||
{
|
{
|
||||||
{ 0, GetCurrentTime }
|
{ 0, GetCurrentTime },
|
||||||
|
{ 2, GetSystemClockContext }
|
||||||
};
|
};
|
||||||
|
|
||||||
this.ClockType = ClockType;
|
this.ClockType = ClockType;
|
||||||
|
@ -38,5 +39,20 @@ namespace Ryujinx.HLE.OsHle.Services.Time
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public long GetSystemClockContext(ServiceCtx Context)
|
||||||
|
{
|
||||||
|
//Raw data dumped from real switch via pegaswitch
|
||||||
|
byte[] SystemClockContext = { 0x07, 0x00, 0x19, 0x00, 0x0d, 0xd2, 0xb2, 0x80};
|
||||||
|
|
||||||
|
Array.Resize(ref SystemClockContext, 0x20);
|
||||||
|
|
||||||
|
for (int Index = 0; Index < 0x20; Index++)
|
||||||
|
{
|
||||||
|
Context.ResponseData.Write(SystemClockContext[Index]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue