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
18adae0a
Commit
18adae0a
authored
Nov 03, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-2' of
https://github.com/nekrozar/ygopro
into subdir
parents
98c58df6
50e01d78
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
gframe/game.cpp
gframe/game.cpp
+4
-4
gframe/replay_mode.cpp
gframe/replay_mode.cpp
+2
-2
gframe/single_duel.cpp
gframe/single_duel.cpp
+2
-2
gframe/single_mode.cpp
gframe/single_mode.cpp
+2
-2
gframe/tag_duel.cpp
gframe/tag_duel.cpp
+2
-2
No files found.
gframe/game.cpp
View file @
18adae0a
...
@@ -979,7 +979,7 @@ void Game::LoadExpansionDB() {
...
@@ -979,7 +979,7 @@ void Game::LoadExpansionDB() {
HANDLE
fh
=
FindFirstFileW
(
L"./expansions/*"
,
&
fdataw
);
HANDLE
fh
=
FindFirstFileW
(
L"./expansions/*"
,
&
fdataw
);
if
(
fh
!=
INVALID_HANDLE_VALUE
)
{
if
(
fh
!=
INVALID_HANDLE_VALUE
)
{
do
{
do
{
if
(
(
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
)
{
if
(
wcscmp
(
L"."
,
fdataw
.
cFileName
)
!=
0
&&
wcscmp
(
L".."
,
fdataw
.
cFileName
)
!=
0
&&
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
{
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
);
...
@@ -993,7 +993,7 @@ void Game::LoadExpansionDB() {
...
@@ -993,7 +993,7 @@ void Game::LoadExpansionDB() {
struct
dirent
*
dirp
;
struct
dirent
*
dirp
;
if
((
dir
=
opendir
(
"./expansions/"
))
!=
NULL
)
{
if
((
dir
=
opendir
(
"./expansions/"
))
!=
NULL
)
{
while
((
dirp
=
readdir
(
dir
))
!=
NULL
)
{
while
((
dirp
=
readdir
(
dir
))
!=
NULL
)
{
if
(
dirp
->
d_type
!=
DT_DIR
)
if
(
strcmp
(
"."
,
dirp
->
d_name
)
==
0
||
strcmp
(
".."
,
dirp
->
d_name
)
==
0
||
dirp
->
d_type
!=
DT_DIR
)
continue
;
continue
;
char
filepath
[
1000
];
char
filepath
[
1000
];
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
...
@@ -1047,7 +1047,7 @@ void Game::LoadExpansionStrings() {
...
@@ -1047,7 +1047,7 @@ void Game::LoadExpansionStrings() {
HANDLE
fh
=
FindFirstFileW
(
L"./expansions/*"
,
&
fdataw
);
HANDLE
fh
=
FindFirstFileW
(
L"./expansions/*"
,
&
fdataw
);
if
(
fh
!=
INVALID_HANDLE_VALUE
)
{
if
(
fh
!=
INVALID_HANDLE_VALUE
)
{
do
{
do
{
if
(
(
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
)
{
if
(
wcscmp
(
L"."
,
fdataw
.
cFileName
)
!=
0
&&
wcscmp
(
L".."
,
fdataw
.
cFileName
)
!=
0
&&
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
{
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
);
...
@@ -1061,7 +1061,7 @@ void Game::LoadExpansionStrings() {
...
@@ -1061,7 +1061,7 @@ void Game::LoadExpansionStrings() {
struct
dirent
*
dirp
;
struct
dirent
*
dirp
;
if
((
dir
=
opendir
(
"./expansions/"
))
!=
NULL
)
{
if
((
dir
=
opendir
(
"./expansions/"
))
!=
NULL
)
{
while
((
dirp
=
readdir
(
dir
))
!=
NULL
)
{
while
((
dirp
=
readdir
(
dir
))
!=
NULL
)
{
if
(
dirp
->
d_type
!=
DT_DIR
)
if
(
strcmp
(
"."
,
dirp
->
d_name
)
==
0
||
strcmp
(
".."
,
dirp
->
d_name
)
==
0
||
dirp
->
d_type
!=
DT_DIR
)
continue
;
continue
;
char
filepath
[
1000
];
char
filepath
[
1000
];
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
...
...
gframe/replay_mode.cpp
View file @
18adae0a
...
@@ -956,7 +956,7 @@ byte* ReplayMode::ScriptReaderEx(const char* script_name, int* slen) {
...
@@ -956,7 +956,7 @@ byte* ReplayMode::ScriptReaderEx(const char* script_name, int* slen) {
HANDLE
fh
=
FindFirstFileW
(
L"./expansions/*"
,
&
fdataw
);
HANDLE
fh
=
FindFirstFileW
(
L"./expansions/*"
,
&
fdataw
);
if
(
fh
!=
INVALID_HANDLE_VALUE
)
{
if
(
fh
!=
INVALID_HANDLE_VALUE
)
{
do
{
do
{
if
(
(
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
)
{
if
(
wcscmp
(
L"."
,
fdataw
.
cFileName
)
!=
0
&&
wcscmp
(
L".."
,
fdataw
.
cFileName
)
!=
0
&&
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
{
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
);
...
@@ -972,7 +972,7 @@ byte* ReplayMode::ScriptReaderEx(const char* script_name, int* slen) {
...
@@ -972,7 +972,7 @@ byte* ReplayMode::ScriptReaderEx(const char* script_name, int* slen) {
struct
dirent
*
dirp
;
struct
dirent
*
dirp
;
if
((
dir
=
opendir
(
"./expansions/"
))
!=
NULL
)
{
if
((
dir
=
opendir
(
"./expansions/"
))
!=
NULL
)
{
while
((
dirp
=
readdir
(
dir
))
!=
NULL
)
{
while
((
dirp
=
readdir
(
dir
))
!=
NULL
)
{
if
(
dirp
->
d_type
!=
DT_DIR
)
if
(
strcmp
(
"."
,
dirp
->
d_name
)
==
0
||
strcmp
(
".."
,
dirp
->
d_name
)
==
0
||
dirp
->
d_type
!=
DT_DIR
)
continue
;
continue
;
char
filepath
[
1000
];
char
filepath
[
1000
];
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
...
...
gframe/single_duel.cpp
View file @
18adae0a
...
@@ -1569,7 +1569,7 @@ byte* SingleDuel::ScriptReaderEx(const char* script_name, int* slen) {
...
@@ -1569,7 +1569,7 @@ byte* SingleDuel::ScriptReaderEx(const char* script_name, int* slen) {
HANDLE
fh
=
FindFirstFileW
(
L"./expansions/*"
,
&
fdataw
);
HANDLE
fh
=
FindFirstFileW
(
L"./expansions/*"
,
&
fdataw
);
if
(
fh
!=
INVALID_HANDLE_VALUE
)
{
if
(
fh
!=
INVALID_HANDLE_VALUE
)
{
do
{
do
{
if
(
(
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
)
{
if
(
wcscmp
(
L"."
,
fdataw
.
cFileName
)
!=
0
&&
wcscmp
(
L".."
,
fdataw
.
cFileName
)
!=
0
&&
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
{
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
);
...
@@ -1585,7 +1585,7 @@ byte* SingleDuel::ScriptReaderEx(const char* script_name, int* slen) {
...
@@ -1585,7 +1585,7 @@ byte* SingleDuel::ScriptReaderEx(const char* script_name, int* slen) {
struct
dirent
*
dirp
;
struct
dirent
*
dirp
;
if
((
dir
=
opendir
(
"./expansions/"
))
!=
NULL
)
{
if
((
dir
=
opendir
(
"./expansions/"
))
!=
NULL
)
{
while
((
dirp
=
readdir
(
dir
))
!=
NULL
)
{
while
((
dirp
=
readdir
(
dir
))
!=
NULL
)
{
if
(
dirp
->
d_type
!=
DT_DIR
)
if
(
strcmp
(
"."
,
dirp
->
d_name
)
==
0
||
strcmp
(
".."
,
dirp
->
d_name
)
==
0
||
dirp
->
d_type
!=
DT_DIR
)
continue
;
continue
;
char
filepath
[
1000
];
char
filepath
[
1000
];
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
...
...
gframe/single_mode.cpp
View file @
18adae0a
...
@@ -877,7 +877,7 @@ byte* SingleMode::ScriptReaderEx(const char* script_name, int* slen) {
...
@@ -877,7 +877,7 @@ byte* SingleMode::ScriptReaderEx(const char* script_name, int* slen) {
HANDLE
fh
=
FindFirstFileW
(
L"./expansions/*"
,
&
fdataw
);
HANDLE
fh
=
FindFirstFileW
(
L"./expansions/*"
,
&
fdataw
);
if
(
fh
!=
INVALID_HANDLE_VALUE
)
{
if
(
fh
!=
INVALID_HANDLE_VALUE
)
{
do
{
do
{
if
(
(
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
)
{
if
(
wcscmp
(
L"."
,
fdataw
.
cFileName
)
!=
0
&&
wcscmp
(
L".."
,
fdataw
.
cFileName
)
!=
0
&&
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
{
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
);
...
@@ -893,7 +893,7 @@ byte* SingleMode::ScriptReaderEx(const char* script_name, int* slen) {
...
@@ -893,7 +893,7 @@ byte* SingleMode::ScriptReaderEx(const char* script_name, int* slen) {
struct
dirent
*
dirp
;
struct
dirent
*
dirp
;
if
((
dir
=
opendir
(
"./expansions/"
))
!=
NULL
)
{
if
((
dir
=
opendir
(
"./expansions/"
))
!=
NULL
)
{
while
((
dirp
=
readdir
(
dir
))
!=
NULL
)
{
while
((
dirp
=
readdir
(
dir
))
!=
NULL
)
{
if
(
dirp
->
d_type
!=
DT_DIR
)
if
(
strcmp
(
"."
,
dirp
->
d_name
)
==
0
||
strcmp
(
".."
,
dirp
->
d_name
)
==
0
||
dirp
->
d_type
!=
DT_DIR
)
continue
;
continue
;
char
filepath
[
1000
];
char
filepath
[
1000
];
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
...
...
gframe/tag_duel.cpp
View file @
18adae0a
...
@@ -1710,7 +1710,7 @@ byte* TagDuel::ScriptReaderEx(const char* script_name, int* slen) {
...
@@ -1710,7 +1710,7 @@ byte* TagDuel::ScriptReaderEx(const char* script_name, int* slen) {
HANDLE
fh
=
FindFirstFileW
(
L"./expansions/*"
,
&
fdataw
);
HANDLE
fh
=
FindFirstFileW
(
L"./expansions/*"
,
&
fdataw
);
if
(
fh
!=
INVALID_HANDLE_VALUE
)
{
if
(
fh
!=
INVALID_HANDLE_VALUE
)
{
do
{
do
{
if
(
(
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
)
{
if
(
wcscmp
(
L"."
,
fdataw
.
cFileName
)
!=
0
&&
wcscmp
(
L".."
,
fdataw
.
cFileName
)
!=
0
&&
fdataw
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
{
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
);
...
@@ -1726,7 +1726,7 @@ byte* TagDuel::ScriptReaderEx(const char* script_name, int* slen) {
...
@@ -1726,7 +1726,7 @@ byte* TagDuel::ScriptReaderEx(const char* script_name, int* slen) {
struct
dirent
*
dirp
;
struct
dirent
*
dirp
;
if
((
dir
=
opendir
(
"./expansions/"
))
!=
NULL
)
{
if
((
dir
=
opendir
(
"./expansions/"
))
!=
NULL
)
{
while
((
dirp
=
readdir
(
dir
))
!=
NULL
)
{
while
((
dirp
=
readdir
(
dir
))
!=
NULL
)
{
if
(
dirp
->
d_type
!=
DT_DIR
)
if
(
strcmp
(
"."
,
dirp
->
d_name
)
==
0
||
strcmp
(
".."
,
dirp
->
d_name
)
==
0
||
dirp
->
d_type
!=
DT_DIR
)
continue
;
continue
;
char
filepath
[
1000
];
char
filepath
[
1000
];
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
sprintf
(
filepath
,
"./expansions/%s/"
,
dirp
->
d_name
);
...
...
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