Commit Graph

411 Commits

Author SHA1 Message Date
Mercury233 b28b64927f add config for image load background thread and multi thread (#2822)
* add gameConf.use_image_load_background_thread

* preformance

* fix config not saving

* add gameConf.use_image_scale_multi_thread

* fix default use_image_load_background_thread
2025-06-19 11:04:12 +08:00
Mercury233 b9e1089f8e add import/export deck code (#2577) 2025-06-18 14:58:05 +08:00
salix5 c41aa28972 left shit on unsigned (#2821) 2025-06-01 20:32:37 +08:00
salix5 5a37286e8a check header in OpenReplay (#2807)
* check header in OpenReplay

* add version_info for old replay

* simplify

* add newline char
2025-05-30 16:05:24 +08:00
salix5 051949fb88 use reference to array in IsExtension (#2808)
* simplify

* use reference to array in IsExtension
2025-05-25 17:38:10 +08:00
salix5 c471f388ff fix: compare signed and unsigned (#2792) 2025-05-17 14:28:11 +08:00
yybbwc f4d57f3c2c scale scrollbar (#2772) 2025-05-17 08:54:25 +08:00
yybbwc 378b11be06 set tooltip on long card name (#2773) 2025-05-17 08:54:07 +08:00
Nanahira bfcb4afcdb add miniaudio (#2727) 2025-05-09 13:34:36 +08:00
Mercury233 c33ed42346 update font fallback order (#2766) 2025-05-01 08:20:14 +08:00
Mercury233 be3e72f503 print error to stderr or debug (#2759) 2025-05-01 08:19:21 +08:00
Mercury233 09db9b19a8 add new font to fallback list (#2758) 2025-04-25 08:56:57 +08:00
Mercury233 137b6820f6 textfont and numfont support spaces (#2756) 2025-04-25 08:56:47 +08:00
Mercury233 9350f5d693 add myfopen, fix setlocale (#2713) 2025-04-21 10:08:00 +08:00
Mercury233 7f29eb15df clarify font error message (#2757) 2025-04-21 10:06:54 +08:00
salix5 fd189e5c8c DeckManager: use uint32_t code (#2739)
* fix LoadLFListSingle

* update LoadDeck, LoadSide

* rename to LoadDeckFromStream

* update CTOS_DeckData

* static member function
2025-03-29 10:44:21 +08:00
salix5 f5d1f205d2 update Game::Initialize (#2725) 2025-03-15 06:42:16 +08:00
salix5 a1188835b3 replace core to irr::core 2025-03-14 19:10:07 +08:00
salix5 9891f8415f replace irr::f32 2025-03-14 19:10:07 +08:00
salix5 b5bf7990e9 replace irr::s32, irr::u32 2025-03-14 19:10:07 +08:00
salix5 b891f85c97 fix namespace irr::core 2025-03-14 19:10:07 +08:00
salix5 bb72c00f56 replace irr::core::vector3df 2025-03-14 19:10:07 +08:00
salix5 006d973d19 replace irr::core::rect<s32> 2025-03-14 19:10:07 +08:00
salix5 194608f8f0 replace irr::core::recti 2025-03-14 19:10:07 +08:00
salix5 296c0d757e fix namespace irr::video 2025-03-14 19:10:07 +08:00
salix5 b2a50ac0a9 fix namespace irr::io 2025-03-14 19:10:07 +08:00
salix5 78501967da minor fix 2025-03-14 19:10:07 +08:00
salix5 8f9fcbd6ed fix namespace irr::gui 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 7f962a995c fix open ydk, yrp file (#2707)
* update Game::Initialize

* fix open ydk, yrp file

* split
2025-03-03 20:43:04 +08:00
salix5 83e21402f7 fix set working directory (#2706) 2025-03-03 09:31:53 +08:00
salix5 9d913e88f8 use standard access mode (#2710) 2025-03-02 13:11:24 +08:00
salix5 ffc6aee169 replace position2d with vector2d (#2709)
* update MenuHandler

* update DeckBuilder

* replace position2di with irr::core::vector2di

* replace position2di with vector2di

* replace core::position2d with irr::core::vector2d

* replace position2d with vector2d
2025-03-02 12:22:54 +08:00
salix5 cfe114f4e5 replace fprintf 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
yybbwc c2d351c61c fix LPARAM (#2670) 2025-02-13 09:50:26 +08:00
salix5 dc5a305301 use <ctime> header (#2668) 2025-02-12 16:26:38 +08:00
salix5 d376ed0e65 use <cwchar> function (#2651) 2025-01-17 19:50:59 +08:00
salix5 bb6ef1e1e6 static member DataManager::FileSystem (#2644) 2025-01-11 20:32:03 +08:00
salix5 7721bfe017 remove NULL (#2626) 2024-12-04 23:19:51 +08:00
salix5 edcd080569 wcsncpy capped at N-1 (#2618) 2024-11-16 19:07:43 +08:00
salix5 53f97ff0f2 wcsncpy capped at N 2024-11-16 15:50:01 +08:00
salix5 b22ff21ace use macro _WIN32 2024-11-16 15:50:01 +08:00
salix5 27972fabcd minor update 2024-11-07 21:13:10 +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 b0e0ca3c79 add datas_begin(), strings_begin() (#2607)
* reorder

* DataManager: add datas_begin(), strings_begin()

* replace
2024-10-16 18:51:22 +08:00
salix5 1225907114 include <thread> in game.cpp (#2579) 2024-08-18 08:31:03 +08:00
salix5 080d7781f0 clean config.h (#2568)
* move header files to game.h

* include mutex when necessary

* include myfilesystem.h when necessary

* include thread when necessary

* include string

* include GL when necessary

* remove #pragma once

* rename guard macro to YGOPRO_CONFIG_H

* fix warning C4456, C4458

* move GL to game.h

* use <cstring> functions

* include <wchar.h>
2024-08-11 05:05:20 +08:00
salix5 db18ac907b use unsigned in bitwise operator (#2567)
* use unsigned in bitwise operator

* use unsigned in bitwise operator
2024-07-08 00:53:47 +08:00