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:
StackZ
2020-06-19 04:54:05 +02:00
committed by GitHub
parent d86f612d09
commit 2641e4922b
23 changed files with 1598 additions and 798 deletions
+1 -5
View File
@@ -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();