Commit Graph

63 Commits

Author SHA1 Message Date
Mercury233 2f756c49a3 fix chdir on macos (#2787) 2025-05-19 08:56:45 +08:00
Mercury233 efc867858b fix setlocale on macos (#2774) 2025-05-01 08:19:37 +08:00
Mercury233 9350f5d693 add myfopen, fix setlocale (#2713) 2025-04-21 10:08:00 +08:00
salix5 94fb5bc981 use C++ header (#2724) 2025-03-14 19:54:10 +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 d376ed0e65 use <cwchar> function (#2651) 2025-01-17 19:50:59 +08:00
salix5 7721bfe017 remove NULL (#2626) 2024-12-04 23:19:51 +08:00
salix5 b22ff21ace use macro _WIN32 2024-11-16 15:50:01 +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 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 790252e650 check sizeof deckBuffer in LoadDeck (#2564)
* Revert "fix"

This reverts commit 51aa89407b.

* check sizeof deckBuffer in LoadDeck

* clear current_deck when selecting a wrong file
2024-06-18 16:54:59 +08:00
salix5 7de2a00db6 check return value of sscanf() (#2532)
* check return value of sscanf()

* enable_log: default value 0x3

* replace atoi() with strtol()

* update LoadLFListSingle()

* set enable_log to unsigned bit field
2024-05-07 03:50:21 +08:00
Mercury233 3ecfeece45 fix deck arg (#2380) 2021-10-01 22:13:29 +08:00
Yuzurisa a3b333122c add --deck-category for specifying deck category in command line (#2375)
* add --deck-category

* fix length
2021-09-12 23:48:53 +08:00
Mercury233 f934b83a79 Deck category and deck manage (#2187) 2021-03-21 11:24:47 +00:00
Mercury233 1dd2fa99ca add zip support (#2167) 2019-03-26 20:58:52 +08:00
DailyShana 8ddb05c5ce update wargv 2018-09-29 14:52:38 +08:00
DailyShana 9b88042a20 update setting working directory (#2140) 2018-09-22 14:11:23 +08:00
DailyShana b299605267 fix and unify 2018-09-20 14:47:48 +08:00
DailyShana f74786b3f0 Revert "Revert "fix & remove redoundant code""
This reverts commit f42ed60564.
2018-09-20 13:33:02 +08:00
DailyShana f42ed60564 Revert "fix & remove redoundant code"
This reverts commit 2c080e02c3.
2018-09-20 09:57:22 +08:00
mercury233 2c080e02c3 fix & remove redoundant code 2018-09-19 23:57:05 +08:00
DailyShana 5ae938099f fix 2018-09-19 22:49:23 +08:00
DailyShana 769b3ca909 bool 2018-09-19 21:29:58 +08:00
DailyShana 53b872c596 fix 2018-09-19 18:18:25 +08:00
DailyShana bd4e84dbe3 name conflict
line 43
2018-09-19 16:41:36 +08:00
DailyShana 4db73567b5 fix getting command args 2018-09-19 16:19:27 +08:00
DailyShana 8918a65c92 get unicode command args on Windows 2018-09-19 10:22:09 +08:00
zhykzhykzhyk e8443057e1 Do not display LAN window when invoke with join command line (#2120) 2018-07-01 17:20:30 +08:00
Mercury233 7e4ab6b442 update directly open ydk and yrp file (#2090) 2018-02-24 23:04:05 +08:00
Mercury233 d269645471 add bot mode (#2059) 2017-12-25 01:35:10 +08:00
zhykzhykzhyk 40238013ea [MacOS] Start ygopro in Finder (#2044) 2017-09-30 13:05:16 +00:00
mercury233 51aa89407b fix 2017-07-30 13:29:11 +08:00
zhykzhykzhyk 7d42cdb915 Fix encoding issue in MacOS (#1962) 2017-07-30 05:27:57 +00:00
mercury233 2f8a51c8ca fix 2017-07-15 18:17:39 +08:00
mercury233 f2be3a860c update command line parameters 2017-03-25 22:36:37 +08:00
DailyShana a11176037d fix 2017-01-21 12:51:10 +08:00
Mercury233 dca91ed5df set working dir on windows 2017-01-11 03:28:53 +08:00
DailyShana 8555829e0c remove -x parameter 2017-01-05 12:22:09 +08:00
mercury233 473dc5b1b2 update exit on return 2017-01-03 22:07:55 +08:00
Mercury233 6063e83daf fix (#1903) 2016-12-31 23:00:46 +08:00
DailyShana 0e7a5dc800 fix 2016-12-31 19:14:45 +08:00
DailyShana 9b9ddb8dcc backward compatibility 2016-12-31 19:06:49 +08:00
mercury233 f35ecc7d98 update & fix 2016-12-31 17:36:18 +08:00
mercury233 9ca1902225 update command line parameters 2016-12-31 01:38:42 +08:00
DailyShana 1bf74487cd support multi-byte file name on Windows 2016-07-03 20:06:08 +08:00
DailyShana e0fdffaa3d fix 2015-11-03 20:00:58 +08:00
luffySAMA f2798cd9e7 -s command 2013-04-09 12:18:41 +08:00
argon.sun 5d2c607b21 fix 2012-11-17 15:39:04 +08:00