diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-07 15:23:51 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-03-07 15:23:51 -0400 |
commit | 09c901655db3bb42d2aac4b506846b18833d777c (patch) | |
tree | c980f1c6b42ee503a699200a55b4cabfded1ffd5 /include/pso/TPlySmth.h | |
parent | 5df9bdde16d30a8bfe520e178c5810a7163e9d6c (diff) |
global: Completly disable inlining
This is because it looks more, and more clear that the entire codebase
was compiled without inlining. Likely to reduce code size from all the
byteswap functions, only present on the GameCube version.
Diffstat (limited to 'include/pso/TPlySmth.h')
-rw-r--r-- | include/pso/TPlySmth.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/include/pso/TPlySmth.h b/include/pso/TPlySmth.h index 99bf763..2530c7b 100644 --- a/include/pso/TPlySmth.h +++ b/include/pso/TPlySmth.h @@ -10,24 +10,13 @@ class TPlySmth { public: TPlySmth() {}; - //TPlySmth &operator=(const TPlySmth &src) { return assign(src); }; - void bswap() { - bswap_32(m_smth.as<u32>()); - bswap_32(m_smth1.as<u32>()); + bswap_32(reinterpret_cast<u32 *>(&m_smth)); + bswap_32(reinterpret_cast<u32 *>(&m_smth1)); }; - - TPlySmth &assign(const TPlySmth &src) /*{ - m_smth = src.m_smth; - }*/; - - PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth, 4); - PRIVATE_MEMBER_ACCESSORS_ARRAY(u8, smth1, 4); - - friend class TProtocol; -protected: - TArray<u8, 4> m_smth; - TArray<u8, 4> m_smth1; +public: + u8 m_smth[4]; + u8 m_smth1[4]; }; #endif |