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
84647665
Commit
84647665
authored
Nov 04, 2018
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
627ba3ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
gframe/deck_manager.cpp
gframe/deck_manager.cpp
+7
-2
gframe/deck_manager.h
gframe/deck_manager.h
+1
-0
No files found.
gframe/deck_manager.cpp
View file @
84647665
...
@@ -49,6 +49,11 @@ void DeckManager::LoadLFListSingle(const char* path) {
...
@@ -49,6 +49,11 @@ void DeckManager::LoadLFListSingle(const char* path) {
fclose
(
fp
);
fclose
(
fp
);
}
}
}
}
void
DeckManager
::
LoadLFListDirectry
(
const
char
*
path
)
{
char
fpath
[
1000
];
sprintf
(
fpath
,
"%s/lflist.conf"
,
path
);
LoadLFListSingle
(
fpath
);
}
void
DeckManager
::
LoadLFList
()
{
void
DeckManager
::
LoadLFList
()
{
LoadLFListSingle
(
"expansions/lflist.conf"
);
LoadLFListSingle
(
"expansions/lflist.conf"
);
#ifdef _WIN32
#ifdef _WIN32
...
@@ -61,7 +66,7 @@ void DeckManager::LoadLFList() {
...
@@ -61,7 +66,7 @@ void DeckManager::LoadLFList() {
char
fname
[
780
];
char
fname
[
780
];
BufferIO
::
EncodeUTF8
(
fdataw
.
cFileName
,
fname
);
BufferIO
::
EncodeUTF8
(
fdataw
.
cFileName
,
fname
);
sprintf
(
fpath
,
"./expansions/%s"
,
fname
);
sprintf
(
fpath
,
"./expansions/%s"
,
fname
);
LoadLFList
Single
(
fpath
);
LoadLFList
Directry
(
fpath
);
}
}
}
while
(
FindNextFileW
(
fh
,
&
fdataw
));
}
while
(
FindNextFileW
(
fh
,
&
fdataw
));
FindClose
(
fh
);
FindClose
(
fh
);
...
@@ -75,7 +80,7 @@ void DeckManager::LoadLFList() {
...
@@ -75,7 +80,7 @@ void DeckManager::LoadLFList() {
continue
;
continue
;
char
filepath
[
1000
];
char
filepath
[
1000
];
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
LoadLFList
Single
(
filepath
);
LoadLFList
Directry
(
filepath
);
}
}
closedir
(
dir
);
closedir
(
dir
);
}
}
...
...
gframe/deck_manager.h
View file @
84647665
...
@@ -36,6 +36,7 @@ public:
...
@@ -36,6 +36,7 @@ public:
std
::
vector
<
LFList
>
_lfList
;
std
::
vector
<
LFList
>
_lfList
;
void
LoadLFListSingle
(
const
char
*
path
);
void
LoadLFListSingle
(
const
char
*
path
);
void
LoadLFListDirectry
(
const
char
*
path
);
void
LoadLFList
();
void
LoadLFList
();
wchar_t
*
GetLFListName
(
int
lfhash
);
wchar_t
*
GetLFListName
(
int
lfhash
);
int
CheckDeck
(
Deck
&
deck
,
int
lfhash
,
bool
allow_ocg
,
bool
allow_tcg
);
int
CheckDeck
(
Deck
&
deck
,
int
lfhash
,
bool
allow_ocg
,
bool
allow_tcg
);
...
...
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