[Applets] Add initial stuff

This commit is contained in:
wheremyfoodat 2023-08-04 19:09:43 +03:00
parent 15ed62e952
commit 8006ec63b0
5 changed files with 33 additions and 2 deletions

View file

@ -0,0 +1,16 @@
#pragma once
#include "helpers.hpp"
#include "memory.hpp"
#include "result/result.hpp"
class AppletBase {
Memory& mem;
public:
// Called by APT::StartLibraryApplet and similar
virtual Result::HorizonResult start() = 0;
virtual void reset() = 0;
AppletBase(Memory& mem) : mem(mem) {}
};