mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-02 16:49:05 +00:00
UniStore v2! (#36)
* Do not build here. * WIP: UniStoreV2! This implementation is ugly and a big cleanup is needed. * [UniStoreV2]: Add `Lang::get(...)`. * Add back UniStore autobooting. * UniStoreV2: Add List Layout. * Some more UniStore work. Also constify vector's. * Some more spritesheet checks. * oops.. forgot to do `Config::fading`. * Display UniStore version on the Store list bar. * version now needs to be `0` or `1` or not included. versions with 2, 3, 4 and up shows an error now. * You can now also scroll to the next page with D-Pad Left/D-Pad Right! * Last fix before merge?
This commit is contained in:
+1
-5
@@ -119,7 +119,7 @@ Result Init::Initialize() {
|
||||
|
||||
if (Config::autoboot == 1) {
|
||||
if (access(Config::AutobootFile.c_str(), F_OK) == 0) {
|
||||
Gui::setScreen(std::make_unique<UniStore>(), false, true);
|
||||
Gui::setScreen(std::make_unique<UniStore>(true, Config::AutobootFile), false, true);
|
||||
} else {
|
||||
AutobootWhat = 0;
|
||||
Config::autoboot = 0;
|
||||
@@ -179,8 +179,6 @@ Result Init::MainLoop() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern void freeSheet();
|
||||
|
||||
Result Init::Exit() {
|
||||
if (songIsFound == true) {
|
||||
stopMusic();
|
||||
@@ -190,8 +188,6 @@ Result Init::Exit() {
|
||||
ndspExit();
|
||||
}
|
||||
|
||||
// Free UniStore spritesheet, just in case.
|
||||
freeSheet();
|
||||
// Only save config, if *any* changes are made. (To reduce SD Writes.)
|
||||
if (changesMade) {
|
||||
Config::save();
|
||||
|
||||
Reference in New Issue
Block a user