Initial commit
This commit is contained in:
34
client/source/main.cpp
Normal file
34
client/source/main.cpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#include <3ds.h>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <fileManip.hpp>
|
||||
|
||||
int main() {
|
||||
// Init hwb services.
|
||||
gfxInitDefault();
|
||||
consoleInit(GFX_TOP, NULL);
|
||||
mcuHwcInit();
|
||||
|
||||
if (!initializeStorage()) {
|
||||
std::cout << "Please free some space on your sdcard" << std::endl;
|
||||
std::cout << "Press start to return to homebrew launcher" << std::endl;
|
||||
} else {
|
||||
std::cout << "Storage initialized successfully" << std::endl;
|
||||
}
|
||||
|
||||
while(aptMainLoop()) {
|
||||
gspWaitForVBlank();
|
||||
hidScanInput();
|
||||
|
||||
|
||||
if(hidKeysDown() & KEY_START)
|
||||
break;
|
||||
|
||||
gfxFlushBuffers();
|
||||
gfxSwapBuffers();
|
||||
}
|
||||
|
||||
mcuHwcExit();
|
||||
gfxExit();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user