mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-12-28 06:06:55 +00:00
Fix Luigi's Mansion can't remove amiibo bug (#5200)
* Fix Luigi's Mansion can't remove amiibo bug
This commit is contained in:
parent
45dfb3aacc
commit
263e5be78e
|
@ -323,10 +323,12 @@ void Module::SyncTagState() {
|
|||
// detected on Scanning->TagInRange?
|
||||
nfc_tag_state = TagState::TagInRange;
|
||||
tag_in_range_event->Signal();
|
||||
} else if (!amiibo_in_range && nfc_tag_state == TagState::TagInRange) {
|
||||
nfc_tag_state = TagState::TagOutOfRange;
|
||||
} else if (!amiibo_in_range &&
|
||||
(nfc_tag_state == TagState::TagInRange || nfc_tag_state == TagState::TagDataLoaded ||
|
||||
nfc_tag_state == TagState::Unknown6)) {
|
||||
// TODO (wwylele): If a tag is removed during TagDataLoaded/Unknown6, should this event
|
||||
// signals early?
|
||||
nfc_tag_state = TagState::TagOutOfRange;
|
||||
tag_out_of_range_event->Signal();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue