Browse Source

ipc_helpers: Fix alignment (was wrong as a result of a dynarmic bug).

nce_cpp
bunnei 8 years ago
parent
commit
9ed2ef9c1c
  1. 5
      src/core/hle/ipc_helpers.h

5
src/core/hle/ipc_helpers.h

@ -39,12 +39,13 @@ 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() {
if (index & 3) {
Skip(4 - (index & 3), true);
}
}
unsigned GetCurrentOffset() const {
return static_cast<unsigned>(index);

Loading…
Cancel
Save