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
0
Merge Requests
0
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
赤子奈落
ygopro
Commits
e3b988fb
Commit
e3b988fb
authored
Mar 27, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Expansions for capital letter
parent
bbae1290
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
gframe/data_manager.cpp
gframe/data_manager.cpp
+5
-0
gframe/deck_manager.cpp
gframe/deck_manager.cpp
+3
-0
gframe/game.cpp
gframe/game.cpp
+9
-0
No files found.
gframe/data_manager.cpp
View file @
e3b988fb
...
@@ -438,6 +438,11 @@ unsigned char* DataManager::ScriptReaderEx(const char* script_name, int* slen) {
...
@@ -438,6 +438,11 @@ unsigned char* DataManager::ScriptReaderEx(const char* script_name, int* slen) {
buffer
=
ScriptReaderExSingle
(
"expansions/"
,
script_name
,
slen
);
buffer
=
ScriptReaderExSingle
(
"expansions/"
,
script_name
,
slen
);
if
(
buffer
)
if
(
buffer
)
return
buffer
;
return
buffer
;
#if defined(SERVER_PRO3_SUPPORT) && !defined(_WIN32)
buffer
=
ScriptReaderExSingle
(
"Expansions/"
,
script_name
,
slen
);
if
(
buffer
)
return
buffer
;
#endif
#if !defined(YGOPRO_SERVER_MODE) || defined(SERVER_ZIP_SUPPORT)
#if !defined(YGOPRO_SERVER_MODE) || defined(SERVER_ZIP_SUPPORT)
buffer
=
ScriptReaderExSingle
(
""
,
script_name
,
slen
,
2
,
TRUE
);
buffer
=
ScriptReaderExSingle
(
""
,
script_name
,
slen
,
2
,
TRUE
);
if
(
buffer
)
if
(
buffer
)
...
...
gframe/deck_manager.cpp
View file @
e3b988fb
...
@@ -51,6 +51,9 @@ void DeckManager::LoadLFList() {
...
@@ -51,6 +51,9 @@ void DeckManager::LoadLFList() {
#endif
#endif
#ifdef SERVER_PRO3_SUPPORT
#ifdef SERVER_PRO3_SUPPORT
LoadLFListSingle
(
"Data/lflist.conf"
);
LoadLFListSingle
(
"Data/lflist.conf"
);
#ifndef _WIN32
LoadLFListSingle
(
"Expansions/lflist.conf"
);
#endif
#endif
#endif
LoadLFListSingle
(
"expansions/lflist.conf"
);
LoadLFListSingle
(
"expansions/lflist.conf"
);
LoadLFListSingle
(
"lflist.conf"
);
LoadLFListSingle
(
"lflist.conf"
);
...
...
gframe/game.cpp
View file @
e3b988fb
...
@@ -1314,6 +1314,15 @@ void Game::LoadExpansions() {
...
@@ -1314,6 +1314,15 @@ void Game::LoadExpansions() {
dataManager
.
LoadDB
(
fpath
);
dataManager
.
LoadDB
(
fpath
);
}
}
});
});
#ifndef _WIN32
FileSystem
::
TraversalDir
(
L"./Expansions"
,
[](
const
wchar_t
*
name
,
bool
isdir
)
{
wchar_t
fpath
[
1024
];
myswprintf
(
fpath
,
L"./Expansions/%ls"
,
name
);
if
(
!
isdir
&&
IsExtension
(
name
,
L".cdb"
))
{
dataManager
.
LoadDB
(
fpath
);
}
});
#endif
#endif // SERVER_PRO3_SUPPORT
#endif // SERVER_PRO3_SUPPORT
FileSystem
::
TraversalDir
(
L"./expansions"
,
[](
const
wchar_t
*
name
,
bool
isdir
)
{
FileSystem
::
TraversalDir
(
L"./expansions"
,
[](
const
wchar_t
*
name
,
bool
isdir
)
{
wchar_t
fpath
[
1024
];
wchar_t
fpath
[
1024
];
...
...
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