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
YGOPRO-520DIY
ygopro
Commits
37c06613
Commit
37c06613
authored
May 05, 2025
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replay: add SkipInfo
parent
ce9439c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
gframe/replay.cpp
gframe/replay.cpp
+6
-0
gframe/replay.h
gframe/replay.h
+2
-0
No files found.
gframe/replay.cpp
View file @
37c06613
...
...
@@ -138,6 +138,8 @@ bool Replay::OpenReplay(const wchar_t* name) {
Reset
();
return
false
;
}
info_offset
=
data_position
;
data_position
=
0
;
return
true
;
}
bool
Replay
::
CheckReplay
(
const
wchar_t
*
name
)
{
...
...
@@ -218,11 +220,15 @@ void Replay::Reset() {
replay_size
=
0
;
comp_size
=
0
;
data_position
=
0
;
info_offset
=
0
;
players
.
clear
();
params
=
{
0
};
decks
.
clear
();
script_name
.
clear
();
}
void
Replay
::
SkipInfo
(){
data_position
+=
info_offset
;
}
bool
Replay
::
ReadInfo
()
{
int
player_count
=
(
pheader
.
flag
&
REPLAY_TAG
)
?
4
:
2
;
for
(
int
i
=
0
;
i
<
player_count
;
++
i
)
{
...
...
gframe/replay.h
View file @
37c06613
...
...
@@ -80,6 +80,7 @@ public:
int32_t
ReadInt32
();
void
Rewind
();
void
Reset
();
void
SkipInfo
();
FILE
*
fp
{
nullptr
};
#ifdef _WIN32
...
...
@@ -102,6 +103,7 @@ private:
unsigned
char
*
replay_data
;
size_t
replay_size
{};
size_t
data_position
{};
size_t
info_offset
{};
bool
is_recording
{};
bool
is_replaying
{};
bool
can_read
{};
...
...
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