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
e147da02
Commit
e147da02
authored
Dec 15, 2024
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove ReadInt8, ReadInt16
parent
965e0564
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
+2
-10
gframe/replay.cpp
gframe/replay.cpp
+0
-6
gframe/replay.h
gframe/replay.h
+0
-2
gframe/replay_mode.cpp
gframe/replay_mode.cpp
+2
-2
No files found.
gframe/replay.cpp
View file @
e147da02
...
...
@@ -217,12 +217,6 @@ bool Replay::ReadData(void* data, size_t length) {
int
Replay
::
ReadInt32
()
{
return
ReadValue
<
int32_t
>
();
}
short
Replay
::
ReadInt16
()
{
return
ReadValue
<
int16_t
>
();
}
char
Replay
::
ReadInt8
()
{
return
ReadValue
<
char
>
();
}
void
Replay
::
Rewind
()
{
data_position
=
0
;
}
...
...
gframe/replay.h
View file @
e147da02
...
...
@@ -60,8 +60,6 @@ public:
return
ret
;
}
int
ReadInt32
();
short
ReadInt16
();
char
ReadInt8
();
void
Rewind
();
FILE
*
fp
{
nullptr
};
...
...
gframe/replay_mode.cpp
View file @
e147da02
...
...
@@ -228,8 +228,8 @@ bool ReplayMode::StartDuel() {
}
}
else
{
char
filename
[
256
];
int
slen
=
cur_replay
.
ReadInt16
();
if
(
slen
<
0
||
slen
>
255
)
{
auto
slen
=
cur_replay
.
Read
<
uint16_t
>
();
if
(
slen
>
sizeof
(
filename
)
-
1
)
{
return
false
;
}
cur_replay
.
ReadData
(
filename
,
slen
);
...
...
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