feat: support Linux/ARM cross-platform build and AVA2 feature updates

- Port server core and libraries to Linux and 32-bit ARM (armhf):
  * Replace FreeBSD kqueue with Linux epoll in libthecore fdwatch
  * Fix unaligned float and 64-bit int memory stores in utils.h str_to_number to avoid ARM VFP alignment fault (SIGBUS)
  * Fix getopt loop variable type in main.cpp (char -> int) to eliminate infinite loop caused by default unsigned char on ARM
  * Add -fsigned-char and multi-architecture flags to Makefiles (x86_64 -m32, i386, and ARM armhf)
  * Update libsql for modern MariaDB client library (removed reconnect field) and C++20 concept/syntax compatibility
  * Replace Win32 xdirent with standard POSIX dirent on Unix/Linux
  * Include xmd5 in libthecore on non-FreeBSD platforms
- AVA2 unlock features and tools:
  * Material stacking up to 2000 count, refine material resolution and test suites
  * AVA2 ticket shop and point drop configuration updates
This commit is contained in:
shenlei
2026-11-11 00:59:49 -08:00
parent 30ea96f418
commit bb0963210e
71 changed files with 1778 additions and 485 deletions
+5 -5
View File
@@ -10,7 +10,7 @@ ROOT = Path(__file__).resolve().parents[2]
class CubeRecovery(unittest.TestCase):
def test_wire_and_actual_game_preload_controller(self):
body = (ROOT/'src/server/game/src/port_cube_recovery.cpp').read_text()
body = (ROOT/'src/server/game/src/port_cube_recovery.cpp').read_bytes().decode('latin1')
body = re.sub(r'^#include[^\n]*\n', '', body, flags=re.M)
# Explicit audit-gate substitute, never modify the production constants.
body = body.replace('return PortCube::HandshakeEnabled&&PortCube::ActorMutationAuditComplete;', 'return auditedGate;')
@@ -101,13 +101,13 @@ int main(){
subprocess.run([str(exe)],check=True)
def test_real_select_dispatch_and_frame_whitelist(self):
select=(ROOT/'src/server/game/src/input_login.cpp').read_text().split('void CInputLogin::CharacterSelect(',1)[1].split('bool NewPlayerTable',1)[0]
select=(ROOT/'src/server/game/src/input_login.cpp').read_bytes().decode('latin1').split('void CInputLogin::CharacterSelect(',1)[1].split('bool NewPlayerTable',1)[0]
self.assertLess(select.index('PortCubeRecoverySelect('),select.index('DBPacket(HEADER_GD_PLAYER_LOAD'))
db=(ROOT/'src/server/game/src/input_db.cpp').read_text()
db=(ROOT/'src/server/game/src/input_db.cpp').read_bytes().decode('latin1')
self.assertIn('!PortCube::IsDbHandshakeReply(frame.message)',db)
self.assertIn('PortCubeRecoveryReply(m_dwHandle,c_pData,size)',db)
self.assertIn('PortCubeRecoveryTick();',(ROOT/'src/server/game/src/main.cpp').read_text())
self.assertIn('port_cube_recovery.cpp',(ROOT/'src/server/game/src/Makefile').read_text())
self.assertIn('PortCubeRecoveryTick();',(ROOT/'src/server/game/src/main.cpp').read_bytes().decode('latin1'))
self.assertIn('port_cube_recovery.cpp',(ROOT/'src/server/game/src/Makefile').read_bytes().decode('latin1'))
if __name__ == '__main__':