mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 04:29:13 +12:00
Handle Amiibo tag events better
This commit is contained in:
parent
cf54fd6d1d
commit
5930a3d843
2 changed files with 17 additions and 1 deletions
|
@ -70,6 +70,14 @@ bool NFCService::loadAmiibo(const std::filesystem::path& path) {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (tagOutOfRangeEvent.has_value()) {
|
||||
kernel.clearEvent(tagOutOfRangeEvent.value());
|
||||
}
|
||||
|
||||
if (tagInRangeEvent.has_value()) {
|
||||
kernel.signalEvent(tagInRangeEvent.value());
|
||||
}
|
||||
|
||||
file.close();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue