diff options
| author | Rachel Bryk <RachelBryk@gmail.com> | 2013-06-25 09:32:01 -0400 |
|---|---|---|
| committer | Rachel Bryk <RachelBryk@gmail.com> | 2013-06-25 09:32:01 -0400 |
| commit | a619135ab4237ac8cc90ed4cc0d2dff4e012a442 (patch) | |
| tree | 4928b3323060db6ac19231379bbc7d1e08251d58 /Source/Core/Common | |
| parent | 748ee505361fda5d1affe76b482060fc725a24e3 (diff) | |
| parent | e250550de3e7fbfdaf119404e5deedb6564ee164 (diff) | |
Merge branch 'JP-wiimote-savestate-fixes'
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/Src/CommonFuncs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/CommonFuncs.h b/Source/Core/Common/Src/CommonFuncs.h index 4321e6dba0..7ea2c8e490 100644 --- a/Source/Core/Common/Src/CommonFuncs.h +++ b/Source/Core/Common/Src/CommonFuncs.h @@ -162,6 +162,7 @@ const char* GetLastErrorMsg(); namespace Common { inline u8 swap8(u8 _data) {return _data;} +inline u32 swap24(const u8* _data) {return (_data[0] << 16) | (_data[1] << 8) | _data[2];} #ifdef _WIN32 inline u16 swap16(u16 _data) {return _byteswap_ushort(_data);} |
