mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-30 13:24:16 +01: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 New Issue
Block a user