Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
ygopro
Commits
2e74d40d
Commit
2e74d40d
authored
Aug 30, 2025
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add deck category constants
parent
868d4b25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
gframe/deck_manager.cpp
gframe/deck_manager.cpp
+4
-4
gframe/deck_manager.h
gframe/deck_manager.h
+6
-0
No files found.
gframe/deck_manager.cpp
View file @
2e74d40d
...
@@ -246,15 +246,15 @@ bool DeckManager::LoadSide(Deck& deck, uint32_t dbuf[], int mainc, int sidec) {
...
@@ -246,15 +246,15 @@ bool DeckManager::LoadSide(Deck& deck, uint32_t dbuf[], int mainc, int sidec) {
void
DeckManager
::
GetCategoryPath
(
wchar_t
*
ret
,
int
index
,
const
wchar_t
*
text
)
{
void
DeckManager
::
GetCategoryPath
(
wchar_t
*
ret
,
int
index
,
const
wchar_t
*
text
)
{
wchar_t
catepath
[
256
];
wchar_t
catepath
[
256
];
switch
(
index
)
{
switch
(
index
)
{
case
0
:
case
DECK_CATEGORY_PACK
:
myswprintf
(
catepath
,
L"./pack"
);
myswprintf
(
catepath
,
L"./pack"
);
break
;
break
;
case
1
:
case
DECK_CATEGORY_BOT
:
BufferIO
::
CopyWideString
(
mainGame
->
gameConf
.
bot_deck_path
,
catepath
);
BufferIO
::
CopyWideString
(
mainGame
->
gameConf
.
bot_deck_path
,
catepath
);
break
;
break
;
case
-
1
:
case
-
1
:
case
2
:
case
DECK_CATEGORY_NONE
:
case
3
:
case
DECK_CATEGORY_SEPARATOR
:
myswprintf
(
catepath
,
L"./deck"
);
myswprintf
(
catepath
,
L"./deck"
);
break
;
break
;
default:
default:
...
...
gframe/deck_manager.h
View file @
2e74d40d
...
@@ -16,6 +16,12 @@ namespace ygo {
...
@@ -16,6 +16,12 @@ namespace ygo {
constexpr
int
MAINC_MAX
=
250
;
// the limit of card_state
constexpr
int
MAINC_MAX
=
250
;
// the limit of card_state
constexpr
int
SIDEC_MAX
=
MAINC_MAX
;
constexpr
int
SIDEC_MAX
=
MAINC_MAX
;
constexpr
int
DECK_CATEGORY_PACK
=
0
;
constexpr
int
DECK_CATEGORY_BOT
=
1
;
constexpr
int
DECK_CATEGORY_NONE
=
2
;
constexpr
int
DECK_CATEGORY_SEPARATOR
=
3
;
constexpr
int
DECK_CATEGORY_CUSTOM
=
4
;
struct
LFList
{
struct
LFList
{
unsigned
int
hash
{};
unsigned
int
hash
{};
std
::
wstring
listName
;
std
::
wstring
listName
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment