summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-10-18 00:03:47 +0200
committerbunnei <bunneidev@gmail.com>2017-10-18 00:03:47 +0200
commit3f2a738d3467fbef04675f29da00bb59682c0c30 (patch)
tree011a85898fd240168590af554424cb97eb25cb3b
parentservice: Print correct command ID on unimplemented function. (diff)
downloadyuzu-3f2a738d3467fbef04675f29da00bb59682c0c30.tar
yuzu-3f2a738d3467fbef04675f29da00bb59682c0c30.tar.gz
yuzu-3f2a738d3467fbef04675f29da00bb59682c0c30.tar.bz2
yuzu-3f2a738d3467fbef04675f29da00bb59682c0c30.tar.lz
yuzu-3f2a738d3467fbef04675f29da00bb59682c0c30.tar.xz
yuzu-3f2a738d3467fbef04675f29da00bb59682c0c30.tar.zst
yuzu-3f2a738d3467fbef04675f29da00bb59682c0c30.zip
-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:
}
/**
- * Aligns the current position forward to a 16-byte boundary, padding with zeros. Jumps forward
- * by 16-bytes at a minimum.
+ * Aligns the current position forward to a 16-byte boundary, padding with zeros.
*/
void AlignWithPadding() {
- Skip(4 - (index & 3), true);
+ if (index & 3) {
+ Skip(4 - (index & 3), true);
+ }
}
unsigned GetCurrentOffset() const {