dolphin/Source/Core
Léo Lam d0136dd7c2
IOS: Clean up the way IPC replies are constructed
Instead of constructing IPCCommandResult with static member functions
in the Device class, we can just add the relevant constructors to the
reply struct itself. Makes more sense than putting it in Device
when the struct is used in the kernel code and doesn't use any Device
specific members...

This commit also changes the IPC command handlers to return an optional
IPCCommandResult rather than an IPCCommandResult. This removes the need
for a separate boolean that indicates whether the "result" is actually
a reply, and also avoids the need to set dummy result values and ticks.

It also makes it really obvious which commands can result in no reply
being generated.

Finally, this commit renames IPCCommandResult to IPCReply since the
struct is now only used for actual replies. This new name is less
verbose in my opinion.

The diff is quite large since this touches every command handler, but
the only functional change is that I fixed EnqueueIPCReply to
take a s64 for cycles_in_future to match IPCReply.
2021-02-13 20:15:30 +01:00
..
AudioCommon msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
Common Merge pull request #6075 from sepalani/pcap-log 2021-02-11 00:15:37 +01:00
Core IOS: Clean up the way IPC replies are constructed 2021-02-13 20:15:30 +01:00
DiscIO IOS: Use less ambiguous names for classes 2021-02-12 21:40:31 +01:00
DolphinNoGUI IOS: Use less ambiguous names for classes 2021-02-12 21:40:31 +01:00
DolphinQt IOS: Use less ambiguous names for classes 2021-02-12 21:40:31 +01:00
InputCommon InputCommon: When using dynamic input textures, only call force reload textures once for packs that have multiple configurations 2021-02-11 19:18:38 -06:00
MacUpdater Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
UICommon IOS: Use less ambiguous names for classes 2021-02-12 21:40:31 +01:00
UpdaterCommon msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
VideoBackends Merge pull request #9424 from Pokechu22/sw-no-special-case 2021-02-11 19:36:45 +01:00
VideoCommon VideoCommon: Join the prefetch thread before clearing to avoid a potential crash that can occur by multiple threads touching a single resource 2021-02-11 19:18:38 -06:00
WinUpdater msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
CMakeLists.txt WinUpdater: Add CMakeLists.txt 2019-05-08 23:59:04 +02:00
DolphinLib.ARM64.props msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
DolphinLib.props Restore BitField Natvis 2021-02-11 23:31:27 -08:00
DolphinLib.vcxproj msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
DolphinLib.vcxproj.user msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
DolphinLib.x64.props msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00