summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2016-04-14 22:22:34 -0400
committerLioncash <mathew1800@gmail.com>2016-04-14 22:55:03 -0400
commit4ae4b241ec312507160c3a9c9d4643af3ae6986e (patch)
tree39fb9a4bd2dce0be31182dca3f2282e0d53bf1ab /Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp
parent4d864ece2728a54edd9ca738d0d6ef4b219f9e20 (diff)
ChunkFile: Handle bool in a stable way across platforms
bool is not always guaranteed to be the same size on every platform. On some platforms it may be one byte, on others it can be 8 bytes if the platform dictates it. It's implementation-defined. This can be problematic when it comes to storing this data to disk (it can also be space-inefficient, but that's not really an issue). Also say for some reason you moved your savestates to another platform, it's possible they won't load correctly due to differences in size. This change stores all bools to savestates as if they were a byte in size and handles the loading of them accordingly.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/XInput/XInput.cpp')
0 files changed, 0 insertions, 0 deletions