Commit Graph

123 Commits

Author SHA1 Message Date
Mercury233 23c3cf1add update ClientField::UpdateDeclarableList & NormalizeChar (#3037) 2026-04-09 09:30:55 +08:00
Mercury233 674564c826 rename dataManager.FileSystem to IrrFileSystem (#3042) 2026-04-04 20:26:52 +08:00
salix5 59b12ca2e6 Move scriptBuffer to an unnamed namespace in data_manager.cpp (#3029) 2026-03-28 08:12:09 +08:00
salix5 6fea874dac Change Deck to (const CardDataC*) vector (#3006) 2026-03-25 09:34:16 +08:00
Mercury233 09c010e87e log error message of database and expansion pack list (#3016) 2026-03-23 06:31:44 +08:00
salix5 ddb14f5e0d Use sqlite3_deserialize in LoadDB (#2993) 2026-03-20 14:06:28 +08:00
salix5 bd326e20d9 Add datas.rule_code (#3000) 2026-03-15 18:21:01 +08:00
Mercury233 90198376d8 remove _IRR_WCHAR_FILESYSTEM and make DataManager::LoadDB accept char* (#2977) 2026-03-10 06:49:13 +08:00
Mercury233 f718ea52b5 update DataManager::GetSetCodes (#2990) 2026-03-02 11:34:25 +08:00
Mercury233 bbd99ad4d1 use _IRR_WCHAR_FILESYSTEM instead of _WIN32 in related #ifdef (#2976) 2026-02-22 17:10:14 +08:00
salix5 03e1fa3128 Change key type to uint32_t in DataManager (#2968) 2026-02-09 09:40:04 +08:00
salix5 39475480a0 Refactor class DataManager (#2956) 2026-01-28 19:02:46 +08:00
salix5 ecda872e2b add default statement SELECT_STMT (#2936) 2025-12-04 00:28:26 +08:00
salix5 a3e9ed47fb Fix memory allocation for data buffer (#2940)
Removed null terminator allocation for memory data.
2025-10-27 19:58:37 +08:00
salix5 a5ce265b01 fix dangling pointer (#2920) 2025-09-08 20:22:43 +08:00
salix5 d921cd0fc0 DataManager: change unknown_string, FileSystem to instance member (#2907) 2025-08-23 14:53:58 +08:00
Wind2009-Louse c6b0690451 Update setcode for DOOD (#2894) 2025-08-11 13:52:19 +08:00
Mercury233 70af2f52e6 add mysnprintf, use std::forward in myswprintf (#2885) 2025-08-11 09:16:01 +08:00
salix5 68d1ff8570 improve loop condition in ReadDB (#2881) 2025-07-21 15:37:30 +08:00
salix5 4e002a7239 static_cast<uint32_t> on uint32 column (#2880) 2025-07-16 10:15:33 +08:00
salix5 c3ecc29236 Refactor DataManager iterator methods to inline (#2873) 2025-07-06 14:38:10 +08:00
salix5 3e2be8dd05 Redefine CardDataC structure and remove inheritance from card_data (#2867) 2025-07-06 12:06:34 +08:00
salix5 844a96d952 Improve error handling in DataManager::Error (#2872) 2025-07-05 17:45:06 +08:00
salix5 bdd3995e38 Improve error message handling in DataManager (#2839) 2025-06-12 19:11:39 +08:00
Mercury233 9350f5d693 add myfopen, fix setlocale (#2713) 2025-04-21 10:08:00 +08:00
salix5 b2a50ac0a9 fix namespace irr::io 2025-03-14 19:10:07 +08:00
salix5 6c53d02a2b use <cstdlib> functions (#2720)
* replace exit

* replace malloc, calloc

* replace strtol

* #include <cstdlib>
2025-03-13 17:26:44 +08:00
salix5 559c72772c read bit field with sqlite3_column_int64 (#2704)
* read bit field with sqlite3_column_int64

follow the standard conversion

* handle all error code in v2

* always finalize stmt in ReadDB

* fix loop condition
2025-03-08 15:25:08 +08:00
salix5 adaf970bea fix DataManager::ReadScriptFromFile (#2714) 2025-03-03 11:23:59 +08:00
Mercury233 6bcc96d222 rename myfopen to mywfopen (#2691)
* use fopen in DataManager::ReadScriptFromFile

* rename myfopen to mywfopen

* use std namespace

---------

Co-authored-by: salix5 <salix5566@gmail.com>
2025-02-22 10:54:31 +08:00
salix5 3623387266 clean header 2025-02-22 10:37:38 +08:00
salix5 c675547122 replace snprintf, sscanf 2025-02-22 10:37:38 +08:00
salix5 f5955f854f replace fopen, fclose, fgets 2025-02-22 10:37:38 +08:00
Mercury233 122b4187cb fix ScriptReader (#2654) 2025-01-26 19:41:22 +08:00
salix5 d376ed0e65 use <cwchar> function (#2651) 2025-01-17 19:50:59 +08:00
salix5 b57b331b65 move struct CardDataC, deck sort functions to data_manager.h (#2647)
* move struct CardDataC to data_manager.h

* update struct CardDataC

* move deck sort functions to DataManager

* update DeckBuilder::filter_effect
2025-01-14 13:25:16 +08:00
salix5 578afd6bea return unknown_string in DataManager::GetSetName (#2650) 2025-01-14 11:21:10 +08:00
salix5 bb6ef1e1e6 static member DataManager::FileSystem (#2644) 2025-01-11 20:32:03 +08:00
salix5 aaa1d3cf9d fix ScriptReader (#2642)
* fix ScriptReader

* increase scriptBuffer

* fix DeckManager::LoadCurrentDeck
2025-01-04 19:34:48 +08:00
salix5 67c1269966 fix DataManager::ScriptReaderEx 2024-12-24 09:10:23 +08:00
salix5 a29eeabad3 update expansions priority (#2638) 2024-12-21 21:44:25 +08:00
salix5 fe53acb786 DataManager: add DefaultScriptReader (#2624)
* DataManager: add DefaultScriptReader

* update priority
2024-12-19 02:40:02 +08:00
salix5 49aa79afa8 update DataManager (#2629) 2024-12-07 18:57:46 +08:00
salix5 85793b7105 replace intN macro (#2627)
* remove int32

* replace uint32_t

* remove uint8
2024-12-05 19:29:41 +08:00
salix5 7721bfe017 remove NULL (#2626) 2024-12-04 23:19:51 +08:00
salix5 c1cd59c475 change byte to unsigned char (#2622)
the dependency of byte is Windows SDK, not common.h
2024-11-30 15:27:20 +08:00
salix5 b7541e8248 DataManage: fix LoadStrings(IReadFile* reader) (#2619) 2024-11-21 18:05:23 +08:00
salix5 ca30449956 use nullptr in script reader (#2612) 2024-11-13 21:35:46 +08:00
salix5 48b01b838c remove wcscpy, wcscat (#2602)
* use wcsncpy

* fix FileSystem::TraversalDir

* avoid wcscat

* remove wcscat

* add BufferIO::CopyWideString

* struct Config: path string changed to wchar_t[256]

* Revert "use wcsncpy"

This reverts commit b05e0c96a3.

* check lastcategory, lastdeck

* fix Game::LoadConfig

max length of filename should be determined by file system

* remove wcscpy

* use BufferIO::CopyWideString

* fix UpdateDeck

* myfilesystem: use std functions

* DataManager: fix GetNumString (#2603)

* DataManager: fix FormatAttribute, FormatRace

* update FormatAttribute, FormatRace

* DataManager: fix FormatType

* update FormatType

* DataManager: fix FormatSetName

* DataManager: fix FormatLinkMarker

* merge

* DataManager: fix GetNumString

* rebuild class ustring16 from edopro version

* add stringw conversion

core::stringw in current version does not have data()

* add CGUITTFont::drawUstring

* use drawUstring

* update DrawShadowText

* fix Game::lpcstring

* fix DuelInfo::vic_string

* add PACK_MAX_SIZE

* add IsExtension (#2604)

* CGUITTFont: use override

* ustring16: only accept basic_string
2024-11-06 08:34:12 +08:00
salix5 132e5277e7 update include files in DataManager (#2608)
* update include files in DataManager

* update DataManager::Error

* increase bucket count
2024-10-18 19:41:13 +08:00