1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-10-01 12:30:00 +02:00
Ryujinx/Ryujinx.HLE
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
..
Exceptions Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
FileSystem ITimeZoneService rewrite (#722) 2019-07-04 17:20:40 +02:00
HOS Implement am ICommonStateGetter::SetCpuBoostMode (#743) 2019-08-28 13:02:50 +02:00
Input Little rewrite of HID input (#723) 2019-07-22 20:15:46 +03:00
Loaders Misc cleanup (#708) 2019-07-02 04:39:22 +02:00
Resource Implement Shared Fonts (#215) 2018-08-04 18:38:49 -03:00
Utilities Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
DeviceMemory.cs Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
Homebrew.npdm Better process implementation (#491) 2018-11-28 20:18:09 -02:00
PerformanceStatistics.cs Built in profiling (#567) 2019-04-26 14:53:10 +10:00
Ryujinx.HLE.csproj Add a new JIT compiler for CPU code (#693) 2019-08-08 21:56:22 +03:00
RyujinxProfileImage.jpg Implement friend:a IFriendService: 10101 (#429) 2018-09-25 19:59:29 -03:00
Switch.cs Logger and Configuration Refactoring (#573) 2019-02-11 09:00:32 -03:00