Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-core
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
nanahira
ygopro-core
Commits
aea5eb4e
Commit
aea5eb4e
authored
Dec 09, 2023
by
Chen Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clear cache when info_location changes
parent
2222c76a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
card.cpp
card.cpp
+7
-1
card.h
card.h
+1
-1
No files found.
card.cpp
View file @
aea5eb4e
...
@@ -146,8 +146,14 @@ int32 card::get_infos(byte* buf, uint32 query_flag, int32 use_cache) {
...
@@ -146,8 +146,14 @@ int32 card::get_infos(byte* buf, uint32 query_flag, int32 use_cache) {
++
p
;
++
p
;
}
}
if
(
query_flag
&
QUERY_POSITION
)
{
if
(
query_flag
&
QUERY_POSITION
)
{
*
p
=
get_info_location
();
uint32
tdata
=
get_info_location
();
*
p
=
tdata
;
++
p
;
++
p
;
if
(
q_cache
.
info_location
!=
tdata
)
{
std
::
memset
(
&
q_cache
,
0xff
,
sizeof
(
query_cache
));
q_cache
.
info_location
=
tdata
;
use_cache
=
0
;
}
}
}
if
(
!
use_cache
)
{
if
(
!
use_cache
)
{
if
(
query_flag
&
QUERY_ALIAS
)
{
if
(
query_flag
&
QUERY_ALIAS
)
{
...
...
card.h
View file @
aea5eb4e
...
@@ -76,7 +76,7 @@ struct card_state {
...
@@ -76,7 +76,7 @@ struct card_state {
};
};
struct
query_cache
{
struct
query_cache
{
uint32
data_code
;
uint32
info_location
;
uint32
current_code
;
uint32
current_code
;
uint32
type
;
uint32
type
;
uint32
level
;
uint32
level
;
...
...
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