Initial commit

This commit is contained in:
2026-01-09 17:07:05 +01:00
commit c621a6c652
17 changed files with 836 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#include <fileManip.hpp>
#include <string>
#include <appConstants.hpp>
bool dirExist(const std::string &path) {
DIR* dir = opendir(path.c_str());
if (dir) {
closedir(dir);
return true;
}
return false;
}
bool initializeStorage() {
if (dirExist(APP_DIR)) return true;
if (mkdir(APP_DIR, 0777) == -1) {
return false;
}
return true;
}

34
client/source/main.cpp Normal file
View 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;
}