Add amiibo loading interface

This commit is contained in:
wheremyfoodat 2023-09-08 19:01:44 +03:00
parent f52337f90c
commit 3110da1fd6
5 changed files with 22 additions and 2 deletions

View file

@ -98,6 +98,7 @@ class Emulator {
void pause(); // Pause the emulator
void togglePause();
bool loadAmiibo(const std::filesystem::path& path);
bool loadROM(const std::filesystem::path& path);
bool loadNCSD(const std::filesystem::path& path, ROMType type);
bool load3DSX(const std::filesystem::path& path);

View file

@ -1,4 +1,6 @@
#pragma once
#include <filesystem>
#include "helpers.hpp"
#include "kernel_types.hpp"
#include "logger.hpp"
@ -49,8 +51,10 @@ class NFCService {
void startTagScanning(u32 messagePointer);
void stopCommunication(u32 messagePointer);
public:
public:
NFCService(Memory& mem, Kernel& kernel) : mem(mem), kernel(kernel) {}
void reset();
void handleSyncRequest(u32 messagePointer);
bool loadAmiibo(const std::filesystem::path& path);
};

View file

@ -104,4 +104,5 @@ class ServiceManager {
// Input function wrappers
HIDService& getHID() { return hid; }
NFCService& getNFC() { return nfc; }
};