2014-12-10 20:21:33 -05:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <3ds.h>
|
|
|
|
|
2015-01-04 00:30:58 -08:00
|
|
|
#include "utils/savedatacheck/savedatacheck.h"
|
2014-12-10 20:21:33 -05:00
|
|
|
|
|
|
|
static unsigned int util_counter = 0;
|
|
|
|
static void (*utils[]) (void) = {
|
2015-01-04 00:30:58 -08:00
|
|
|
SaveDataCheck::Dump,
|
2014-12-10 20:21:33 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
aptInit();
|
2015-02-07 16:24:41 -02:00
|
|
|
gfxInitDefault();
|
2015-06-14 15:09:31 -07:00
|
|
|
consoleInit(GFX_TOP, nullptr);
|
2014-12-10 20:21:33 -05:00
|
|
|
|
2015-06-14 15:09:31 -07:00
|
|
|
consoleClear();
|
|
|
|
printf("Press A to begin...\n");
|
2014-12-10 20:21:33 -05:00
|
|
|
|
|
|
|
while (aptMainLoop()) {
|
2015-06-14 15:09:31 -07:00
|
|
|
gfxFlushBuffers();
|
|
|
|
gfxSwapBuffers();
|
2014-12-10 20:21:33 -05:00
|
|
|
|
|
|
|
hidScanInput();
|
|
|
|
if (hidKeysDown() & KEY_START) {
|
|
|
|
break;
|
|
|
|
} else if (hidKeysDown() & KEY_A) {
|
2015-06-14 15:09:31 -07:00
|
|
|
consoleClear();
|
2014-12-10 20:21:33 -05:00
|
|
|
|
|
|
|
if (util_counter < (sizeof(utils) / sizeof(utils[0]))) {
|
|
|
|
utils[util_counter]();
|
|
|
|
util_counter++;
|
|
|
|
} else {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2015-06-14 15:09:31 -07:00
|
|
|
printf("\n");
|
|
|
|
printf("Press A to continue...\n");
|
2014-12-10 20:21:33 -05:00
|
|
|
}
|
|
|
|
|
2016-01-03 19:52:35 -08:00
|
|
|
gspWaitForEvent(GSPGPU_EVENT_VBlank0, false);
|
2014-12-10 20:21:33 -05:00
|
|
|
}
|
|
|
|
|
2015-06-14 15:09:31 -07:00
|
|
|
consoleClear();
|
2014-12-10 20:21:33 -05:00
|
|
|
|
|
|
|
gfxExit();
|
|
|
|
aptExit();
|
|
|
|
return 0;
|
|
|
|
}
|