0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-23 13:55:47 +00:00
Ryujinx/Ryujinx.HLE/HOS/Services/Am
Ac_K 6b8fb8a4e3 Implement am ICommonStateGetter::SetCpuBoostMode (#743)
- Implement am ICommonStateGetter::SetCpuBoostMode according to the RE:

```
signed __int64 __fastcall nn::ICommonStateGetter::SetCpuBoostModeImpl(__int64 this, unsigned int cpu_boost_mode)
{
  if ( cpu_boost_mode > 1 )
  {
    return 0x3F480LL;
  }

  __int64 v2 = *(_QWORD *)(this + 0x38);
  __int64 v3 = *(_QWORD *)(*(_QWORD *)(v2 + 8) + 0x298LL);

  nnLock((_DWORD *)(v3 + 0x104));

  __int64 v5 = *(_QWORD *)(v2 + 0x18);
  bool unk_bool = *(unsigned __int8 *)(v5 + 0x7C);

  *(_DWORD *)(v5 + 0x80) = cpu_boost_mode;

  if (!unk_bool)
  {
    *(_BYTE *)(v5 + 0x7C) = 1;
  }

  wait_condvar(v3 + 0xA8);
  nnUnlock((_DWORD *)(v3 + 0x104));

  return 0LL;
}
```

- Add enum for apm CpuBoostMode
- Add missing values in apm PerformanceConfiguration with some comments.
2019-08-28 13:02:50 +02:00
..
FocusState.cs Code style fixes and nits on the HLE project (#355) 2018-08-16 20:47:36 -03:00
IAllSystemAppletProxiesService.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
IApplicationCreator.cs Refactoring commands handling (#728) 2019-07-11 22:13:43 -03:00
IApplicationFunctions.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
IApplicationProxy.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
IApplicationProxyService.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
IAudioController.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
ICommonStateGetter.cs Implement am ICommonStateGetter::SetCpuBoostMode (#743) 2019-08-28 13:02:50 +02:00
IDebugFunctions.cs Refactoring commands handling (#728) 2019-07-11 22:13:43 -03:00
IDisplayController.cs Refactoring commands handling (#728) 2019-07-11 22:13:43 -03:00
IGlobalStateController.cs Refactoring commands handling (#728) 2019-07-11 22:13:43 -03:00
IHomeMenuFunctions.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
ILibraryAppletAccessor.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
ILibraryAppletCreator.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
ISelfController.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
IStorage.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
IStorageAccessor.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
ISystemAppletProxy.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
IWindowController.cs Refactoring result codes (#731) 2019-07-14 16:04:38 -03:00
MessageInfo.cs Code style fixes and nits on the HLE project (#355) 2018-08-16 20:47:36 -03:00
OperationMode.cs Code style fixes and nits on the HLE project (#355) 2018-08-16 20:47:36 -03:00
ResultCode.cs Implement am ICommonStateGetter::SetCpuBoostMode (#743) 2019-08-28 13:02:50 +02:00
StorageHelper.cs Misc cleanup (#708) 2019-07-02 04:39:22 +02:00