set.mitm: Parse settings from SD card (closes #268)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user