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
REIKAI
ygopro
Commits
f05d5bd4
Commit
f05d5bd4
authored
Dec 19, 2017
by
edo9300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
3516ba98
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
138 deletions
+30
-138
gframe/old_replay_mode.cpp
gframe/old_replay_mode.cpp
+22
-113
gframe/replay_mode.h
gframe/replay_mode.h
+1
-4
gframe/single_mode.cpp
gframe/single_mode.cpp
+7
-21
No files found.
gframe/old_replay_mode.cpp
View file @
f05d5bd4
This diff is collapsed.
Click to expand it.
gframe/replay_mode.h
View file @
f05d5bd4
...
...
@@ -44,11 +44,8 @@ public:
static
bool
ReplayAnalyze
(
ReplayPacket
p
);
static
bool
ReplayAnalyze
(
char
*
msg
,
unsigned
int
len
);
static
void
ReplayRefresh
(
int
player
,
int
location
,
int
flag
=
0xf81fff
);
static
void
ReplayRefresh
(
int
flag
=
0xf81fff
);
static
void
ReplayRefreshHand
(
int
player
,
int
flag
=
0x781fff
);
static
void
ReplayRefreshGrave
(
int
player
,
int
flag
=
0x181fff
);
static
void
ReplayRefreshDeck
(
int
player
,
int
flag
=
0x181fff
);
static
void
ReplayRefreshExtra
(
int
player
,
int
flag
=
0x181fff
);
static
void
ReplayRefreshSingle
(
int
player
,
int
location
,
int
sequence
,
int
flag
=
0xf81fff
);
static
void
ReplayReload
();
...
...
gframe/single_mode.cpp
View file @
f05d5bd4
...
...
@@ -775,6 +775,7 @@ bool SingleMode::SinglePlayAnalyze(char* msg, unsigned int len) {
int
rule
=
BufferIO
::
ReadInt8
(
pbuf
);
mainGame
->
dInfo
.
duel_field
=
rule
&
0xf
;
mainGame
->
dInfo
.
extraval
=
rule
>>
4
;
mainGame
->
SetPhaseButtons
();
int
val
=
0
;
for
(
int
p
=
0
;
p
<
2
;
++
p
)
{
mainGame
->
dInfo
.
lp
[
p
]
=
BufferIO
::
ReadInt32
(
pbuf
);
...
...
@@ -903,29 +904,14 @@ void SingleMode::SinglePlayRefreshSingle(int player, int location, int sequence,
replay_stream
.
push_back
(
p
);
}
void
SingleMode
::
SinglePlayRefresh
(
int
flag
)
{
SinglePlayRefresh
(
0
,
LOCATION_MZONE
,
flag
);
SinglePlayRefresh
(
1
,
LOCATION_MZONE
,
flag
);
SinglePlayRefresh
(
0
,
LOCATION_SZONE
,
flag
);
SinglePlayRefresh
(
1
,
LOCATION_SZONE
,
flag
);
SinglePlayRefresh
(
0
,
LOCATION_HAND
,
flag
);
SinglePlayRefresh
(
1
,
LOCATION_HAND
,
flag
);
for
(
int
p
=
0
;
p
<
2
;
p
++
)
for
(
int
loc
=
LOCATION_HAND
;
loc
!=
LOCATION_GRAVE
;
loc
*=
2
)
SinglePlayRefresh
(
p
,
loc
,
flag
);
}
void
SingleMode
::
SinglePlayReload
()
{
unsigned
int
flag
=
0xffdfff
;
SinglePlayRefresh
(
0
,
LOCATION_MZONE
,
flag
);
SinglePlayRefresh
(
1
,
LOCATION_MZONE
,
flag
);
SinglePlayRefresh
(
0
,
LOCATION_SZONE
,
flag
);
SinglePlayRefresh
(
1
,
LOCATION_SZONE
,
flag
);
SinglePlayRefresh
(
0
,
LOCATION_HAND
,
flag
);
SinglePlayRefresh
(
1
,
LOCATION_HAND
,
flag
);
SinglePlayRefresh
(
0
,
LOCATION_DECK
,
flag
);
SinglePlayRefresh
(
1
,
LOCATION_DECK
,
flag
);
SinglePlayRefresh
(
0
,
LOCATION_EXTRA
,
flag
);
SinglePlayRefresh
(
1
,
LOCATION_EXTRA
,
flag
);
SinglePlayRefresh
(
0
,
LOCATION_GRAVE
,
flag
);
SinglePlayRefresh
(
1
,
LOCATION_GRAVE
,
flag
);
SinglePlayRefresh
(
0
,
LOCATION_REMOVED
,
flag
);
SinglePlayRefresh
(
1
,
LOCATION_REMOVED
,
flag
);
for
(
int
p
=
0
;
p
<
2
;
p
++
)
for
(
int
loc
=
LOCATION_DECK
;
loc
!=
LOCATION_OVERLAY
;
loc
*=
2
)
SinglePlayRefresh
(
p
,
loc
,
0xffdfff
);
}
byte
*
SingleMode
::
ScriptReader
(
const
char
*
script_name
,
int
*
slen
)
{
FILE
*
fp
;
...
...
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