mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-19 05:51:07 +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?
|
// 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 New Issue
Block a user