1. 31 May, 2024 3 commits
    • Chen Bill's avatar
      BufferIO: update CopyWStr (#2554) · 8902f818
      Chen Bill authored
      8902f818
    • Chen Bill's avatar
      disconnect when the packet is too large (#2551) · e209e775
      Chen Bill authored
      * use memcpy in DuelClient, NetServer
      
      * NetServer: discard too large packet
      
      * DuelClient: discard too large packet
      
      * replace memcpy with std::memcpy
      
      * disconnect when the packet is too large
      
      * check packet_len
      
      * check len in HandleCTOSPacket()
      
      * check len in HandleSTOCPacketLan()
      
      * remove bool type in HostInfo
      
      * check len in packet handling
      
      * add boundary check to STOC_CHAT packet
      
      * use memcpy in DuelMode::JoinGame
      
      * add DECK_MAX_SIZE, DECK_MIN_SIZE
      
      * fix DuelMode::UpdateDeck()
      
      * fix
      
      * fix Manager::OpenDeckFile()
      
      * update DuelMode init
      
      * update DuelMode::JoinGame
      
      * update DuelMode::GetResponse
      
      * Revert "check len in packet handling"
      
      This reverts commit 2b5c12f3.
      
      * use memcpy in GetPosition
      
      * check struct size by static_assert
      
      * update DuelMode::UpdateDeck
      
      * check if the struct is trivially copyable
      
      * replace unsigned short to uint16_t
      
      * replace unsigned int to uint32_t
      
      * add padding member to STOC_HS_PlayerEnter
      
      * workaround: use STOC_HS_PlayerEnter_size
      e209e775
    • Chen Bill's avatar
      update get_log_message() (#2550) · 1f03d732
      Chen Bill authored
      1f03d732
  2. 25 May, 2024 2 commits
  3. 21 May, 2024 5 commits
  4. 13 May, 2024 1 commit
  5. 12 May, 2024 1 commit
    • Chen Bill's avatar
      use memcpy in bufferio.h (#2524) · f29450b9
      Chen Bill authored
      * use memcpy in bufferio.h
      
      * include
      
      * use std::memcpy
      
      * use BufferIO Read/Write
      
      * use fixed width integer
      
      * include <cstdint>
      f29450b9
  6. 11 May, 2024 2 commits
  7. 07 May, 2024 3 commits
  8. 03 May, 2024 1 commit
  9. 02 May, 2024 1 commit
    • Chen Bill's avatar
      Use BufferIO::ReadUInt8 (#2537) · b2901259
      Chen Bill authored
      * change code, location, position to unsigned
      
      * change code, location, postion to unsigned
      
      * use ReadUInt8() for 1-byte data
      
      * Game::LocalPlayer() returns 0, 1
      
      * wrong matching
      
      * change card code to unsigned
      b2901259
  10. 28 Apr, 2024 2 commits
  11. 27 Apr, 2024 1 commit
  12. 24 Apr, 2024 2 commits
  13. 23 Apr, 2024 2 commits
  14. 22 Apr, 2024 1 commit
  15. 21 Apr, 2024 1 commit
  16. 18 Apr, 2024 1 commit
  17. 04 Apr, 2024 1 commit
  18. 26 Mar, 2024 2 commits
  19. 22 Mar, 2024 1 commit
  20. 21 Mar, 2024 1 commit
  21. 14 Mar, 2024 1 commit
  22. 12 Mar, 2024 1 commit
  23. 26 Feb, 2024 1 commit
  24. 14 Feb, 2024 2 commits
  25. 12 Feb, 2024 1 commit
    • Chen Bill's avatar
      Use array to store setcode (#2510) · 05da015f
      Chen Bill authored
      * card_data.setcode: use std vector
      
      * remove CARD_ARTWORK_VERSIONS_OFFSET
      
      * add extra_setcode for cards with 5+ setcodes
      
      * setcode use array
      
      * Update data_manager.cpp
      05da015f