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
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
Commits
0cf955ec
Commit
0cf955ec
authored
May 06, 2025
by
wind2009
1
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'salix/patch-rp' into develop
parents
24c17c10
d59e03c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
gframe/replay.cpp
gframe/replay.cpp
+6
-0
gframe/replay.h
gframe/replay.h
+2
-0
gframe/replay_mode.cpp
gframe/replay_mode.cpp
+1
-0
No files found.
gframe/replay.cpp
View file @
0cf955ec
...
...
@@ -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 @
0cf955ec
...
...
@@ -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
{};
...
...
gframe/replay_mode.cpp
View file @
0cf955ec
...
...
@@ -158,6 +158,7 @@ bool ReplayMode::StartDuel() {
const
ReplayHeader
&
rh
=
cur_replay
.
pheader
;
unsigned
int
seed
=
rh
.
seed
;
std
::
mt19937
rnd
(
seed
);
cur_replay
.
SkipInfo
();
if
(
mainGame
->
dInfo
.
isTag
)
{
BufferIO
::
CopyWideString
(
cur_replay
.
players
[
0
].
c_str
(),
mainGame
->
dInfo
.
hostname
);
BufferIO
::
CopyWideString
(
cur_replay
.
players
[
1
].
c_str
(),
mainGame
->
dInfo
.
hostname_tag
);
...
...
wind2009
@wind2009
mentioned in commit
4e279b89
·
May 06, 2025
mentioned in commit
4e279b89
mentioned in commit 4e279b89d988af24a11d6049c2a9e3cdd17759ef
Toggle commit list
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