Lime3DS/src/core/hle
Weiyi Wang 8b8111b425 NFC: extract frontend-facing tag state
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.
2019-08-17 21:56:12 -04:00
..
applets common/string_util: Move TextFromBuffer to string_util 2019-04-08 22:34:21 +08:00
kernel renderer_opengl: Add support for custom shaders (#4578) 2019-08-09 20:00:47 +02:00
service NFC: extract frontend-facing tag state 2019-08-17 21:56:12 -04:00
ipc_helpers.h ipc_helpers: silent signed comparison warning 2019-07-14 14:52:17 -04:00
ipc.h Kernel/Thread: move thread queue, current thread, and scheduling related function into the manager 2018-10-26 16:07:11 -04:00
lock.cpp hle/lock: Remove #pragma once in cpp file 2017-10-21 13:59:14 +01:00
lock.h Use recursive_mutex instead of mutex to fix #2902 2017-08-29 20:39:55 +12:00
result.h ResultCode: use default copy assignment 2018-11-12 13:59:34 -05:00
romfs.cpp RomFSFile: Default constructor 2018-07-26 13:10:56 +02:00
romfs.h RomFSFile: Default constructor 2018-07-26 13:10:56 +02:00