mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-13 13:44:57 +00:00
ipc_helpers: Fix alignment (was wrong as a result of a dynarmic bug).
This commit is contained in:
parent
d3cc369618
commit
3f2a738d34
1 changed files with 4 additions and 3 deletions
|
@ -39,11 +39,12 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Aligns the current position forward to a 16-byte boundary, padding with zeros. Jumps forward
|
* Aligns the current position forward to a 16-byte boundary, padding with zeros.
|
||||||
* by 16-bytes at a minimum.
|
|
||||||
*/
|
*/
|
||||||
void AlignWithPadding() {
|
void AlignWithPadding() {
|
||||||
Skip(4 - (index & 3), true);
|
if (index & 3) {
|
||||||
|
Skip(4 - (index & 3), true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned GetCurrentOffset() const {
|
unsigned GetCurrentOffset() const {
|
||||||
|
|
Loading…
Reference in a new issue