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
c169dd65
Commit
c169dd65
authored
Aug 09, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
68038630
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
gframe/replay.cpp
gframe/replay.cpp
+8
-2
No files found.
gframe/replay.cpp
View file @
c169dd65
...
...
@@ -21,7 +21,7 @@ Replay::~Replay() {
}
void
Replay
::
BeginRecord
()
{
#ifdef YGOPRO_SERVER_MODE
if
(
ygo
::
replay_mode
==
0
)
return
;
if
(
ygo
::
replay_mode
>
0
)
{
#endif //YGOPRO_SERVER_MODE
#ifdef _WIN32
if
(
is_recording
)
...
...
@@ -48,6 +48,9 @@ void Replay::BeginRecord() {
if
(
!
fp
)
return
;
#endif
#ifdef YGOPRO_SERVER_MODE
}
#endif //YGOPRO_SERVER_MODE
pdata
=
replay_data
;
is_recording
=
true
;
}
...
...
@@ -147,13 +150,16 @@ void Replay::EndRecord() {
if
(
!
is_recording
)
return
;
#ifdef YGOPRO_SERVER_MODE
if
(
ygo
::
replay_mode
==
0
)
return
;
if
(
ygo
::
replay_mode
>
0
)
{
#endif //YGOPRO_SERVER_MODE
#ifdef _WIN32
CloseHandle
(
recording_fp
);
#else
fclose
(
fp
);
#endif
#ifdef YGOPRO_SERVER_MODE
}
#endif //YGOPRO_SERVER_MODE
pheader
.
datasize
=
pdata
-
replay_data
;
pheader
.
flag
|=
REPLAY_COMPRESSED
;
size_t
propsize
=
5
;
...
...
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