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
nanahira
ygopro
Commits
bff9592d
Commit
bff9592d
authored
Jan 31, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into macevent
parents
ec7f8136
c7e1ea37
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
33 additions
and
10 deletions
+33
-10
.gitignore
.gitignore
+1
-0
cards.cdb
cards.cdb
+0
-0
gframe/duelclient.cpp
gframe/duelclient.cpp
+4
-5
gframe/myfilesystem.h
gframe/myfilesystem.h
+25
-2
ocgcore
ocgcore
+1
-1
script
script
+1
-1
strings.conf
strings.conf
+1
-1
textures/bg/bgCE.jpg
textures/bg/bgCE.jpg
+0
-0
textures/bg/bgDK.jpg
textures/bg/bgDK.jpg
+0
-0
textures/cover2/cover2WCS.jpg
textures/cover2/cover2WCS.jpg
+0
-0
No files found.
.gitignore
View file @
bff9592d
...
...
@@ -85,3 +85,4 @@ core*
/*.bat
/*.sh
/*.sql
cards.cdb
View file @
bff9592d
No preview for this file type
gframe/duelclient.cpp
View file @
bff9592d
...
...
@@ -367,12 +367,11 @@ void DuelClient::HandleSTOCPacketLan(char* data, unsigned int len) {
unsigned
short
count
=
BufferIO
::
ReadUInt16
(
pdata
);
char
temp1
[
64
];
char
temp2
[
128
];
wchar_t
roomname
[
32
];
wchar_t
player1
[
64
];
wchar_t
player2
[
64
];
wchar_t
hoststr
[
1024
];
for
(
unsigned
short
i
=
0
;
i
<
count
;
++
i
)
{
wchar_t
roomname
[
32
];
wchar_t
player1
[
64
];
wchar_t
player2
[
64
];
wchar_t
hoststr
[
1024
];
memcpy
(
temp1
,
pdata
,
64
);
pdata
+=
64
;
BufferIO
::
DecodeUTF8
(
temp1
,
roomname
);
...
...
gframe/myfilesystem.h
View file @
bff9592d
...
...
@@ -8,6 +8,8 @@
#ifndef _WIN32
#include <dirent.h>
#include <sys/stat.h>
#include <vector>
#include <algorithm>
#endif
#ifdef _WIN32
...
...
@@ -109,21 +111,42 @@ public:
return
MakeDir
(
dir
);
}
struct
file_unit
{
std
::
string
filename
;
bool
is_dir
;
};
static
void
TraversalDir
(
const
char
*
path
,
const
std
::
function
<
void
(
const
char
*
,
bool
)
>&
cb
)
{
DIR
*
dir
=
nullptr
;
struct
dirent
*
dirp
=
nullptr
;
if
((
dir
=
opendir
(
path
))
==
nullptr
)
return
;
struct
stat
fileStat
;
while
((
dirp
=
readdir
(
dir
))
!=
nullptr
)
{
std
::
vector
<
file_unit
>
file_list
;
while
((
dirp
=
readdir
(
dir
))
!=
nullptr
)
{
file_unit
funit
;
char
fname
[
1024
];
strcpy
(
fname
,
path
);
strcat
(
fname
,
"/"
);
strcat
(
fname
,
dirp
->
d_name
);
stat
(
fname
,
&
fileStat
);
cb
(
dirp
->
d_name
,
S_ISDIR
(
fileStat
.
st_mode
));
funit
.
filename
=
std
::
string
(
dirp
->
d_name
);
funit
.
is_dir
=
S_ISDIR
(
fileStat
.
st_mode
);
file_list
.
push_back
(
funit
);
}
closedir
(
dir
);
std
::
sort
(
file_list
.
begin
(),
file_list
.
end
(),
TraversalDirSort
);
for
(
file_unit
funit
:
file_list
)
cb
(
funit
.
filename
.
c_str
(),
funit
.
is_dir
);
}
static
bool
TraversalDirSort
(
file_unit
file1
,
file_unit
file2
)
{
if
(
file1
.
is_dir
!=
file2
.
is_dir
)
{
return
file1
.
is_dir
;
}
else
{
return
file1
.
filename
<
file2
.
filename
;
}
}
static
void
TraversalDir
(
const
wchar_t
*
wpath
,
const
std
::
function
<
void
(
const
wchar_t
*
,
bool
)
>&
cb
)
{
...
...
ocgcore
@
cf3a323b
Subproject commit
1869873106359b64e06a263b31e2e2ad529e9933
Subproject commit
cf3a323bec3209c1a004808563b397a753a16c70
script
@
42931d98
Subproject commit
a57b3522f6acb3d1e37a484654ef7cecf2b7f774
Subproject commit
42931d988b99711aa1ae0b86385789db4acd76c5
strings.conf
View file @
bff9592d
...
...
@@ -858,7 +858,7 @@
!
setname
0
xd4
伯吉斯异兽 バージェストマ
!
setname
0
xd5
但丁 ダンテ
!
setname
0
xd6
破坏剑 破壊剣
!
setname
0
xd7
巴斯达·布雷达
バスター・ブレイダー
!
setname
0
xd7
破坏之剑士
バスター・ブレイダー
!
setname
0
xd8
雾动机龙 ダイナミスト
!
setname
0
xd9
不知火
!
setname
0
x10d9
妖刀-不知火 妖刀-不知火
...
...
textures/bg/bgCE.jpg
deleted
100644 → 0
View file @
ec7f8136
713 KB
textures/bg/bgDK.jpg
deleted
100644 → 0
View file @
ec7f8136
785 KB
textures/cover2/cover2WCS.jpg
deleted
100644 → 0
View file @
ec7f8136
92.8 KB
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