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
MobiusMei
ygopro
Commits
fecc155f
Commit
fecc155f
authored
Sep 12, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'fh/master' into mc
parents
d3d11963
4cf6f2f4
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2552 additions
and
2355 deletions
+2552
-2355
gframe/menu_handler.cpp
gframe/menu_handler.cpp
+1
-0
gframe/myfilesystem.h
gframe/myfilesystem.h
+10
-0
lflist.conf
lflist.conf
+2539
-2353
system.conf
system.conf
+2
-2
No files found.
gframe/menu_handler.cpp
View file @
fecc155f
...
...
@@ -309,6 +309,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
int
extra
=
replay
.
ReadInt32
();
for
(
int
j
=
0
;
j
<
extra
;
++
j
)
tmp_deck
.
extra
.
push_back
(
dataManager
.
GetCodePointer
(
replay
.
ReadInt32
()));
FileSystem
::
SafeFileName
(
namebuf
[
i
]);
myswprintf
(
filename
,
L"deck/%ls-%d %ls.ydk"
,
ex_filename
,
i
+
1
,
namebuf
[
i
]);
deckManager
.
SaveDeck
(
tmp_deck
,
filename
);
}
...
...
gframe/myfilesystem.h
View file @
fecc155f
...
...
@@ -19,6 +19,11 @@
class
FileSystem
{
public:
static
void
SafeFileName
(
wchar_t
*
wfile
)
{
while
((
wfile
=
wcspbrk
(
wfile
,
L"<>:
\"
/
\\
|?*"
))
!=
NULL
)
*
wfile
++
=
'_'
;
}
static
bool
IsFileExists
(
const
wchar_t
*
wfile
)
{
DWORD
attr
=
GetFileAttributesW
(
wfile
);
return
attr
!=
INVALID_FILE_ATTRIBUTES
&&
!
(
attr
&
FILE_ATTRIBUTE_DIRECTORY
);
...
...
@@ -112,6 +117,11 @@ public:
class
FileSystem
{
public:
static
void
SafeFileName
(
wchar_t
*
wfile
)
{
while
((
wfile
=
wcspbrk
(
wfile
,
L"/"
))
!=
NULL
)
*
wfile
++
=
'_'
;
}
static
bool
IsFileExists
(
const
char
*
file
)
{
struct
stat
fileStat
;
return
(
stat
(
file
,
&
fileStat
)
==
0
)
&&
!
S_ISDIR
(
fileStat
.
st_mode
);
...
...
lflist.conf
View file @
fecc155f
This diff is collapsed.
Click to expand it.
system.conf
View file @
fecc155f
...
...
@@ -8,8 +8,8 @@ nickname = Player
gamename
=
Game
lastcategory
= 未分类卡组
lastdeck
=
new
textfont
=
c
:/
windows
/
fonts
/
simsun
.
ttc
14
numfont
=
c
:/
windows
/
fonts
/
arialbd
.
ttf
textfont
=
./
fonts
/
textFont
.
ttf
14
numfont
=
./
fonts
/
numFont
.
ttf
serverport
=
7911
lasthost
=
127
.
0
.
0
.
1
lastport
=
7911
...
...
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