diff options
| author | 2017-10-17 18:03:47 -0400 | |
|---|---|---|
| committer | 2017-10-17 18:03:47 -0400 | |
| commit | 3f2a738d3467fbef04675f29da00bb59682c0c30 (patch) | |
| tree | 011a85898fd240168590af554424cb97eb25cb3b /src/core | |
| parent | service: Print correct command ID on unimplemented function. (diff) | |
| download | yuzu-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.h | 7 |
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 { |