Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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
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
MyCard
ygopro-2pick
Commits
2de526c4
Commit
2de526c4
authored
Nov 04, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
2cd66f41
84647665
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
gframe/deck_manager.cpp
gframe/deck_manager.cpp
+9
-4
gframe/deck_manager.h
gframe/deck_manager.h
+1
-0
gframe/game.cpp
gframe/game.cpp
+1
-1
No files found.
gframe/deck_manager.cpp
View file @
2de526c4
...
...
@@ -49,6 +49,11 @@ void DeckManager::LoadLFListSingle(const char* path) {
fclose
(
fp
);
}
}
void
DeckManager
::
LoadLFListDirectry
(
const
char
*
path
)
{
char
fpath
[
1000
];
sprintf
(
fpath
,
"%s/lflist.conf"
,
path
);
LoadLFListSingle
(
fpath
);
}
void
DeckManager
::
LoadLFList
()
{
LoadLFListSingle
(
"expansions/lflist.conf"
);
#ifdef _WIN32
...
...
@@ -60,8 +65,8 @@ void DeckManager::LoadLFList() {
if
(
wcscmp
(
L"."
,
fdataw
.
cFileName
)
!=
0
&&
wcscmp
(
L".."
,
fdataw
.
cFileName
)
!=
0
&&
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
{
char
fname
[
780
];
BufferIO
::
EncodeUTF8
(
fdataw
.
cFileName
,
fname
);
sprintf
(
fpath
,
"./expansions/%s
/lflist.conf
"
,
fname
);
LoadLFList
Single
(
fpath
);
sprintf
(
fpath
,
"./expansions/%s"
,
fname
);
LoadLFList
Directry
(
fpath
);
}
}
while
(
FindNextFileW
(
fh
,
&
fdataw
));
FindClose
(
fh
);
...
...
@@ -74,8 +79,8 @@ void DeckManager::LoadLFList() {
if
(
strcmp
(
"."
,
dirp
->
d_name
)
==
0
||
strcmp
(
".."
,
dirp
->
d_name
)
==
0
||
dirp
->
d_type
!=
DT_DIR
)
continue
;
char
filepath
[
1000
];
sprintf
(
filepath
,
"./expansions/%s
/lflist.conf
"
,
dirp
->
d_name
);
LoadLFList
Single
(
filepath
);
sprintf
(
filepath
,
"./expansions/%s"
,
dirp
->
d_name
);
LoadLFList
Directry
(
filepath
);
}
closedir
(
dir
);
}
...
...
gframe/deck_manager.h
View file @
2de526c4
...
...
@@ -36,6 +36,7 @@ public:
std
::
vector
<
LFList
>
_lfList
;
void
LoadLFListSingle
(
const
char
*
path
);
void
LoadLFListDirectry
(
const
char
*
path
);
void
LoadLFList
();
wchar_t
*
GetLFListName
(
int
lfhash
);
int
CheckDeck
(
Deck
&
deck
,
int
lfhash
,
bool
allow_ocg
,
bool
allow_tcg
);
...
...
gframe/game.cpp
View file @
2de526c4
...
...
@@ -93,12 +93,12 @@ bool Game::Initialize() {
ErrorLog
(
"Failed to load card database (cards.cdb)!"
);
return
false
;
}
LoadExpansionStrings
();
if
(
dataManager
.
LoadStrings
(
GetLocaleDir
(
"strings.conf"
)))
{}
else
if
(
!
dataManager
.
LoadStrings
(
"strings.conf"
))
{
ErrorLog
(
"Failed to load strings!"
);
return
false
;
}
LoadExpansionStrings
();
env
=
device
->
getGUIEnvironment
();
numFont
=
irr
::
gui
::
CGUITTFont
::
createTTFont
(
env
,
gameConf
.
numfont
,
16
);
adFont
=
irr
::
gui
::
CGUITTFont
::
createTTFont
(
env
,
gameConf
.
numfont
,
12
);
...
...
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