summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2017-10-17 18:03:47 -0400
committerGravatar bunnei2017-10-17 18:03:47 -0400
commit3f2a738d3467fbef04675f29da00bb59682c0c30 (patch)
tree011a85898fd240168590af554424cb97eb25cb3b /src/core
parentservice: Print correct command ID on unimplemented function. (diff)
downloadyuzu-3f2a738d3467fbef04675f29da00bb59682c0c30.tar.gz
yuzu-3f2a738d3467fbef04675f29da00bb59682c0c30.tar.xz
yuzu-3f2a738d3467fbef04675f29da00bb59682c0c30.zip
ipc_helpers: Fix alignment (was wrong as a result of a dynarmic bug).
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/ipc_helpers.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h
index 41899c519..94bd4e0cc 100644
--- a/src/core/hle/ipc_helpers.h
+++ b/src/core/hle/ipc_helpers.h
@@ -39,11 +39,12 @@ public:
39 } 39 }
40 40
41 /** 41 /**
42 * Aligns the current position forward to a 16-byte boundary, padding with zeros. Jumps forward 42 * Aligns the current position forward to a 16-byte boundary, padding with zeros.
43 * by 16-bytes at a minimum.
44 */ 43 */
45 void AlignWithPadding() { 44 void AlignWithPadding() {
46 Skip(4 - (index & 3), true); 45 if (index & 3) {
46 Skip(4 - (index & 3), true);
47 }
47 } 48 }
48 49
49 unsigned GetCurrentOffset() const { 50 unsigned GetCurrentOffset() const {