mirror of
https://github.com/Lime3DS/Lime3DS
synced 2024-12-28 01:52:29 -06: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
1 changed files with 4 additions and 2 deletions
|
@ -323,10 +323,12 @@ void Module::SyncTagState() {
|
||||||
// detected on Scanning->TagInRange?
|
// detected on Scanning->TagInRange?
|
||||||
nfc_tag_state = TagState::TagInRange;
|
nfc_tag_state = TagState::TagInRange;
|
||||||
tag_in_range_event->Signal();
|
tag_in_range_event->Signal();
|
||||||
} else if (!amiibo_in_range && nfc_tag_state == TagState::TagInRange) {
|
} else if (!amiibo_in_range &&
|
||||||
nfc_tag_state = TagState::TagOutOfRange;
|
(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
|
// TODO (wwylele): If a tag is removed during TagDataLoaded/Unknown6, should this event
|
||||||
// signals early?
|
// signals early?
|
||||||
|
nfc_tag_state = TagState::TagOutOfRange;
|
||||||
tag_out_of_range_event->Signal();
|
tag_out_of_range_event->Signal();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue