From 09c901655db3bb42d2aac4b506846b18833d777c Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 7 Mar 2023 15:23:51 -0400 Subject: 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. --- src/pso/TSocket.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/pso/TSocket.cpp') diff --git a/src/pso/TSocket.cpp b/src/pso/TSocket.cpp index 3c5576f..d7d22a0 100644 --- a/src/pso/TSocket.cpp +++ b/src/pso/TSocket.cpp @@ -27,7 +27,11 @@ void TSocket::set_port(u32 port) { } void TSocket::set_ip_address(u32 addr) { - m_dst_addr.addr_bytes.fast_copy_reverse(addr); + u8 *ptr = reinterpret_cast(&addr); + m_dst_addr.addr_bytes[3] = ptr[0]; + m_dst_addr.addr_bytes[2] = ptr[1]; + m_dst_addr.addr_bytes[1] = ptr[2]; + m_dst_addr.addr_bytes[0] = ptr[3]; } int TSocket::resolve_domain(char *domain) { @@ -36,7 +40,10 @@ int TSocket::resolve_domain(char *domain) { } TSocket::TSocket(TObject *parent) : TObject(parent) { - m_dst_addr.addr_bytes.fast_fill_with(0); + m_dst_addr.addr_bytes[0] = 0; + m_dst_addr.addr_bytes[1] = 0; + m_dst_addr.addr_bytes[2] = 0; + m_dst_addr.addr_bytes[3] = 0; m_dst_port = 0; m_src_port = 0; m_sock_fd = -1; -- cgit v1.2.3-13-gbd6f