summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/FramebufferManager.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2021-02-13 18:33:23 +0100
committerLéo Lam <leo@leolam.fr>2021-02-13 20:15:30 +0100
commitd0136dd7c2cb98ed5e2f030ae7c2e7a307985660 (patch)
tree14df9a3aca47a91951bf3e0d038393fe16323bdd /Source/Core/VideoCommon/FramebufferManager.cpp
parentf52aa3d04176c0b0aff8a4b5abd477eb7aa7ea5c (diff)
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.
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManager.cpp')
0 files changed, 0 insertions, 0 deletions