8b8111b425
Added a new state amiibo_in_range. This state is akin to the real world physical relationship between a 3DS machine and an amiibo, which is independent from the service state (or even the machine is powered on or not). The service state nfc_tag_state is then synchronized with this physical state on every potential point when the state changes. This solves the issue where user might load an amiibo before NFC service initializes, or remove an amiibo after NFC service shutdown, which previously causes inconsistent state change. Also removed std::atomic on nfc_tag_state, because 1. It is already protected by g_hle_lock 2. It wasn't properly used in the code anyway. For example, there are many double loading on this variable, which effectively make it non-atomic. |
||
---|---|---|
.. | ||
arm | ||
cheats | ||
dumping | ||
file_sys | ||
frontend | ||
gdbstub | ||
hle | ||
hw | ||
loader | ||
rpc | ||
tracer | ||
3ds.h | ||
announce_multiplayer_session.cpp | ||
announce_multiplayer_session.h | ||
CMakeLists.txt | ||
core.cpp | ||
core.h | ||
core_timing.cpp | ||
core_timing.h | ||
memory.cpp | ||
memory.h | ||
mmio.h | ||
movie.cpp | ||
movie.h | ||
perf_stats.cpp | ||
perf_stats.h | ||
settings.cpp | ||
settings.h | ||
telemetry_session.cpp | ||
telemetry_session.h |