set.mitm: Parse settings from SD card (closes #268)

This commit is contained in:
Michael Scire 2019-01-21 01:09:06 -08:00
parent 4711d0565d
commit 18ee6eb2e6
9 changed files with 834 additions and 5 deletions

View file

@ -24,13 +24,14 @@
#include <stratosphere.hpp>
#include "setsys_mitm_service.hpp"
#include "setsys_settings_items.hpp"
extern "C" {
extern u32 __start__;
u32 __nx_applet_type = AppletType_None;
#define INNER_HEAP_SIZE 0x20000
#define INNER_HEAP_SIZE 0x40000
size_t nx_inner_heap_size = INNER_HEAP_SIZE;
char nx_inner_heap[INNER_HEAP_SIZE];
@ -80,6 +81,9 @@ using SetMitmManager = WaitableManager<SetSysManagerOptions>;
int main(int argc, char **argv)
{
consoleDebugInit(debugDevice_SVC);
/* Load settings from SD card. */
SettingsItemManager::RefreshConfiguration();
/* TODO: What's a good timeout value to use here? */
auto server_manager = new SetMitmManager(1);