130 Commits
Author SHA1 Message Date
Mercury233 bea3249a31 move FileSystem implementation from header to source (#3143) 2026-07-20 11:11:37 +08:00
Mercury233 d2be60a27d move sqlite3.h to data_manager.cpp (#3146) 2026-07-20 08:24:47 +08:00
Mercury233 612eb7d426 sort cards whose names exactly match the search query (#3108) 2026-06-19 09:01:12 +08:00
Mercury233 f086b6ed98 minor fixes (#3102)
* use SIZE_SETCODE in FormatSetName

* fix return value on fail

* update parsing arg

* fix re-delare var
2026-06-02 09:19:06 +08:00
Mercury233 e0c7030b96 fix skipping last line in LoadStrings (#3074) 2026-05-06 09:15:08 +08:00
salix5 5e1d76347f Prevent overwriting existing system/victory strings in ReadStringConfLine (#3059)
* Prevent overwriting existing system strings in ReadStringConfLine

* Fix ReadStringConfLine

* Change unsigned int to uint32_t in ReadStringConfLine
2026-04-25 14:14:18 +08:00
salix5 435611e9b8 Only accept known string id in format string (#3057) 2026-04-25 14:07:12 +08:00
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
Mercury233andsalix5 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