mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-02 16:49:05 +00:00
Add deleteTitle and bootTitle.
**ONLY USE "DELETE TITLE" WHEN NEEDED!!!!!!!!!!!!!**
This commit is contained in:
+13
-6
@@ -84,6 +84,7 @@ void Init::stopMusic(void) {
|
||||
Result Init::Initialize() {
|
||||
gfxInitDefault();
|
||||
romfsInit();
|
||||
amInit();
|
||||
Gui::init();
|
||||
Gui::loadSheet("romfs:/gfx/sprites.t3x", sprites);
|
||||
sdmcInit();
|
||||
@@ -116,12 +117,12 @@ Result Init::Initialize() {
|
||||
playMusic();
|
||||
}
|
||||
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Result Init::MainLoop() {
|
||||
// Initialize everything.
|
||||
Initialize();
|
||||
// Initialize everything.
|
||||
Initialize();
|
||||
|
||||
// Loop as long as the status is not exiting.
|
||||
while (aptMainLoop() && !exiting)
|
||||
@@ -146,11 +147,13 @@ Result Init::MainLoop() {
|
||||
}
|
||||
}
|
||||
}
|
||||
// Exit all services and exit the app.
|
||||
Exit();
|
||||
return 0;
|
||||
// Exit all services and exit the app.
|
||||
Exit();
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern void freeSheet();
|
||||
|
||||
Result Init::Exit() {
|
||||
if (songIsFound == true) {
|
||||
stopMusic();
|
||||
@@ -159,12 +162,16 @@ Result Init::Exit() {
|
||||
if (dspFound == true) {
|
||||
ndspExit();
|
||||
}
|
||||
|
||||
// Free UniStore spritesheet, just in case.
|
||||
freeSheet();
|
||||
Config::save();
|
||||
Gui::exit();
|
||||
Gui::unloadSheet(sprites);
|
||||
gfxExit();
|
||||
cfguExit();
|
||||
acExit();
|
||||
amExit();
|
||||
romfsExit();
|
||||
sdmcExit();
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user