0.9.2 commit...

* Text on icon area of top screen graphics show "No Icon" instead of
original text of DS Cart. This text is only visible if no NDS file is
selected or an NDS file that is selected has no icon.
* Fix top screen text on load to display HBMenu instead of Acekard 2i
(this project was originally setup as a bootstrap for that cart when I
initially did this UI overhaul)
* Center text for Fat Init Fail error text for bottom screen.
* Added new line of text for bottom screen displayed during FAT init.
Only really visible if you have an especially slow card or if DLDI init
hangs. This replaces original HBMenu's extra text that used to be
displayed with it's name on top screen during init.
This commit is contained in:
ApacheThunder 2024-03-15 03:04:40 -05:00
parent 3747288627
commit 6b733cdcef
6 changed files with 14 additions and 6 deletions

View File

@ -11,7 +11,7 @@ include $(DEVKITARM)/ds_rules
export HBMENU_MAJOR := 0
export HBMENU_MINOR := 9
export HBMENU_PATCH := 1
export HBMENU_PATCH := 2
VERSION := $(HBMENU_MAJOR).$(HBMENU_MINOR).$(HBMENU_PATCH)

View File

@ -16,6 +16,8 @@ The new font used in this build of HBMenu is a stripped down version version of
https://github.com/DS-Homebrew/GodMode9i/tree/master/resources/fonts
The new UI is themed off original DS firmware.
## Passing arguments
The Homebrew Menu supports passing arguments to launched .nds files via .argv files. The testfiles folder has an nds file which lists arguments and some sample .argv files. These are simple text files which start with the name of the nds file to run and a list of arguments to pass to the application. Here's a quick sample .argv file.
```shell

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -280,7 +280,6 @@ Modified by Chishm:
* Removed MultiNDS specific stuff
--------------------------------------------------------------------------*/
void startBinary_ARM7 (void) {
*((vu8*)0x027FFF70) = 0x91;
REG_IME=0;
while(REG_VCOUNT!=191);
while(REG_VCOUNT==191);

View File

@ -127,7 +127,7 @@ void iconTitleInit (void) {
oamUpdate(&oamMain);
// everything's ready :)
writeRow (1,"===>>> Acekard2i <<<===");
writeRow (1,"===>>> HBMenu+ <<<===");
}

View File

@ -64,12 +64,13 @@ int stop(void) {
while (1) {
swiWaitForVBlank();
scanKeys();
if (!(keysHeld() & KEY_A))break;
if (keysHeld())break;
}
return 0;
}
int FileBrowser() {
consoleClear();
vector<string> extensionList = argsGetExtensionList();
chdir("/nds");
while(1) {
@ -98,7 +99,13 @@ int main(int argc, char **argv) {
extern u64 *fake_heap_end;
*fake_heap_end = 0;
InitGUI();
if (!fatInitDefault()) { printf ("\n\nFAT init failed!\n"); return stop(); }
return FileBrowser();
printf ("\n\n\n\n\n\n\n\n\n\n Initializing FAT ...\n");
if (!fatInitDefault()) {
consoleClear();
printf ("\n\n\n\n\n\n\n\n\n\n FAT init failed! \n");
return stop();
}
FileBrowser();
return 0;
}