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
bd9a2690
Commit
bd9a2690
authored
Dec 14, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
declare large array
parent
32389dda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
gframe/replay_mode.cpp
gframe/replay_mode.cpp
+6
-7
gframe/single_mode.cpp
gframe/single_mode.cpp
+4
-4
No files found.
gframe/replay_mode.cpp
View file @
bd9a2690
...
...
@@ -879,12 +879,12 @@ void ReplayMode::ReloadLocation(int player, int location, int flag, std::vector<
}
void
ReplayMode
::
RefreshLocation
(
int
player
,
int
location
,
int
flag
)
{
std
::
vector
<
unsigned
char
>
queryBuffer
;
queryBuffer
.
res
erv
e
(
SIZE_QUERY_BUFFER
);
queryBuffer
.
res
iz
e
(
SIZE_QUERY_BUFFER
);
ReloadLocation
(
player
,
location
,
flag
,
queryBuffer
);
}
void
ReplayMode
::
ReplayRefresh
(
int
flag
)
{
std
::
vector
<
byte
>
queryBuffer
;
queryBuffer
.
res
erv
e
(
SIZE_QUERY_BUFFER
);
queryBuffer
.
res
iz
e
(
SIZE_QUERY_BUFFER
);
ReloadLocation
(
0
,
LOCATION_MZONE
,
flag
,
queryBuffer
);
ReloadLocation
(
1
,
LOCATION_MZONE
,
flag
,
queryBuffer
);
ReloadLocation
(
0
,
LOCATION_SZONE
,
flag
,
queryBuffer
);
...
...
@@ -905,14 +905,13 @@ void ReplayMode::ReplayRefreshExtra(int player, int flag) {
RefreshLocation
(
player
,
LOCATION_EXTRA
,
flag
);
}
void
ReplayMode
::
ReplayRefreshSingle
(
int
player
,
int
location
,
int
sequence
,
int
flag
)
{
std
::
vector
<
unsigned
char
>
queryBuffer
;
queryBuffer
.
reserve
(
SIZE_QUERY_BUFFER
);
/*int len = */
query_card
(
pduel
,
player
,
location
,
sequence
,
flag
,
queryBuffer
.
data
(),
0
);
mainGame
->
dField
.
UpdateCard
(
mainGame
->
LocalPlayer
(
player
),
location
,
sequence
,
queryBuffer
.
data
());
unsigned
char
queryBuffer
[
0x1000
];
/*int len = */
query_card
(
pduel
,
player
,
location
,
sequence
,
flag
,
queryBuffer
,
0
);
mainGame
->
dField
.
UpdateCard
(
mainGame
->
LocalPlayer
(
player
),
location
,
sequence
,
queryBuffer
);
}
void
ReplayMode
::
ReplayReload
()
{
std
::
vector
<
unsigned
char
>
queryBuffer
;
queryBuffer
.
res
erv
e
(
SIZE_QUERY_BUFFER
);
queryBuffer
.
res
iz
e
(
SIZE_QUERY_BUFFER
);
unsigned
int
flag
=
0xffdfff
;
ReloadLocation
(
0
,
LOCATION_MZONE
,
flag
,
queryBuffer
);
ReloadLocation
(
1
,
LOCATION_MZONE
,
flag
,
queryBuffer
);
...
...
gframe/single_mode.cpp
View file @
bd9a2690
...
...
@@ -780,12 +780,12 @@ void SingleMode::ReloadLocation(int player, int location, int flag, std::vector<
}
void
SingleMode
::
RefreshLocation
(
int
player
,
int
location
,
int
flag
)
{
std
::
vector
<
unsigned
char
>
queryBuffer
;
queryBuffer
.
res
erv
e
(
SIZE_QUERY_BUFFER
);
queryBuffer
.
res
iz
e
(
SIZE_QUERY_BUFFER
);
ReloadLocation
(
player
,
location
,
flag
,
queryBuffer
);
}
void
SingleMode
::
SinglePlayRefresh
(
int
flag
)
{
std
::
vector
<
unsigned
char
>
queryBuffer
;
queryBuffer
.
res
erv
e
(
SIZE_QUERY_BUFFER
);
queryBuffer
.
res
iz
e
(
SIZE_QUERY_BUFFER
);
ReloadLocation
(
0
,
LOCATION_MZONE
,
flag
,
queryBuffer
);
ReloadLocation
(
1
,
LOCATION_MZONE
,
flag
,
queryBuffer
);
ReloadLocation
(
0
,
LOCATION_SZONE
,
flag
,
queryBuffer
);
...
...
@@ -806,13 +806,13 @@ void SingleMode::SinglePlayRefreshExtra(int player, int flag) {
RefreshLocation
(
player
,
LOCATION_EXTRA
,
flag
);
}
void
SingleMode
::
SinglePlayRefreshSingle
(
int
player
,
int
location
,
int
sequence
,
int
flag
)
{
unsigned
char
queryBuffer
[
0x
2
000
];
unsigned
char
queryBuffer
[
0x
1
000
];
/*int len = */
query_card
(
pduel
,
player
,
location
,
sequence
,
flag
,
queryBuffer
,
0
);
mainGame
->
dField
.
UpdateCard
(
mainGame
->
LocalPlayer
(
player
),
location
,
sequence
,
queryBuffer
);
}
void
SingleMode
::
SinglePlayReload
()
{
std
::
vector
<
byte
>
queryBuffer
;
queryBuffer
.
res
erv
e
(
SIZE_QUERY_BUFFER
);
queryBuffer
.
res
iz
e
(
SIZE_QUERY_BUFFER
);
unsigned
int
flag
=
0xffdfff
;
ReloadLocation
(
0
,
LOCATION_MZONE
,
flag
,
queryBuffer
);
ReloadLocation
(
1
,
LOCATION_MZONE
,
flag
,
queryBuffer
);
...
...
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