Few fixups for nfc
This commit is contained in:
@@ -476,11 +476,11 @@ void System::LoadAmiibo(const std::string& filename) {
|
||||
impl->nfc_activate->Signal();
|
||||
}
|
||||
|
||||
Kernel::SharedPtr<Kernel::Event>& System::GetNFCEvent() const {
|
||||
const Kernel::SharedPtr<Kernel::Event>& System::GetNFCEvent() const {
|
||||
return impl->nfc_activate;
|
||||
}
|
||||
|
||||
std::string& System::GetNFCFilename() const {
|
||||
const std::string& System::GetNFCFilename() const {
|
||||
return impl->nfc_filename;
|
||||
}
|
||||
|
||||
|
||||
@@ -225,11 +225,11 @@ public:
|
||||
|
||||
std::shared_ptr<FileSys::VfsFilesystem> GetFilesystem() const;
|
||||
|
||||
std::string& GetNFCFilename() const;
|
||||
const std::string& GetNFCFilename() const;
|
||||
|
||||
void LoadAmiibo(const std::string& path);
|
||||
|
||||
Kernel::SharedPtr<Kernel::Event>& GetNFCEvent() const;
|
||||
const Kernel::SharedPtr<Kernel::Event>& GetNFCEvent() const;
|
||||
|
||||
private:
|
||||
System();
|
||||
|
||||
@@ -157,7 +157,8 @@ private:
|
||||
case DeviceState::TagFound:
|
||||
case DeviceState::TagNearby:
|
||||
deactivate_event->Signal();
|
||||
[[fallthrough]];
|
||||
device_state = DeviceState::Initialized;
|
||||
break;
|
||||
case DeviceState::SearchingForTag:
|
||||
case DeviceState::TagRemoved:
|
||||
device_state = DeviceState::Initialized;
|
||||
|
||||
Reference in New Issue
Block a user