mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-03 12:27:21 +12:00
Add reading amiibo from .amiibo file
This commit is contained in:
parent
3110da1fd6
commit
72ae5d2bfa
5 changed files with 45 additions and 2 deletions
15
include/services/amiibo_device.hpp
Normal file
15
include/services/amiibo_device.hpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
#include <array>
|
||||
|
||||
#include "helpers.hpp"
|
||||
#include "io_file.hpp"
|
||||
|
||||
class AmiiboDevice {
|
||||
public:
|
||||
static constexpr size_t tagSize = 0x21C;
|
||||
|
||||
bool loaded = false;
|
||||
std::array<u8, tagSize> raw;
|
||||
|
||||
void reset();
|
||||
};
|
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
#include <filesystem>
|
||||
|
||||
#include "amiibo_device.hpp"
|
||||
#include "helpers.hpp"
|
||||
#include "kernel_types.hpp"
|
||||
#include "logger.hpp"
|
||||
|
@ -35,6 +36,7 @@ class NFCService {
|
|||
// Kernel events signaled when an NFC tag goes in and out of range respectively
|
||||
std::optional<Handle> tagInRangeEvent, tagOutOfRangeEvent;
|
||||
|
||||
AmiiboDevice device;
|
||||
Old3DSAdapterStatus adapterStatus;
|
||||
TagStatus tagStatus;
|
||||
bool initialized = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue