[Solved] Problems using "HomebrewMenu"
Posted: Fri Jun 19, 2009 12:12 pm
I want to use NitroFS in my current project, however my hardware [M3 DS Real + M3Sakura V1.35 USA/Europe]
does not support the "argv"-Stuff needed by NitroFS. I have downloaded and modified the HomebrewMenu mentioned
in http://forums.devkitpro.org/viewtopic.php?p=2607#p2607 to directly launch another NDS file by setting
Test.nds as well as the launcher is stored in the Root folder of the SD card an contains the program
(based on \examples\nds\filesystem\nitrofs\nitrodir)
If I run Test.nds on no$gba 2.6 or hardware (w/o HomebrewMenu) everything works fine:
with values changing according to input.
When I launch the same file using HomebrewMenu, argv is set correctly but the keys X,Y and Touchscreen are not working.
Also KeysHeld gives the value 8192 if no key is pressed. All working keys are "or'ed" to 8192. Touch remains 0,0.
My current installation of devktiPro is: (installed.ini)
Any idea what's going wrong here?
does not support the "argv"-Stuff needed by NitroFS. I have downloaded and modified the HomebrewMenu mentioned
in http://forums.devkitpro.org/viewtopic.php?p=2607#p2607 to directly launch another NDS file by setting
Code: Select all
const char DEFAULT_FILE[] = "Test.nds";
(based on \examples\nds\filesystem\nitrofs\nitrodir)
Code: Select all
#include <nds.h>
#include <filesystem.h>
#include <stdio.h>
/******************************************************************************/
int main(int argc, char **argv)
/******************************************************************************/
{
consoleDemoInit();
while(1)
{
touchPosition P;
consoleClear();
printf("argv[0] = %s\n", argv[0]);
scanKeys();
touchRead(&P);
printf("KeysHeld = %i\n", keysHeld());
printf("Touch = %i, %i", P.px, P.py);
swiWaitForVBlank();
}
return 0;
}
Code: Select all
argv[0] = (null)
KeysHeld = 0
Touch = 0,0
When I launch the same file using HomebrewMenu, argv is set correctly but the keys X,Y and Touchscreen are not working.
Also KeysHeld gives the value 8192 if no key is pressed. All working keys are "or'ed" to 8192. Touch remains 0,0.
Code: Select all
argv[0] = fat:/test.nds
KeysHeld = 8192
Touch = 0,0
Code: Select all
[mirror]
url=
[msys]
Version=1.0.11-RC2
[devkitARM]
Version=26
[devkitPPC]
Version=0
[devkitPSP]
Version=0
[libgba]
Version=20090222
[libnds]
Version=1.3.5
[libmirko]
Version=0.9.7
[pnotepad]
Version=0
[insight]
Version=0
[ndsexamples]
Version=20090531
[gbaexamples]
Version=20090222
[cubeexamples]
Version=0
[pspdoc]
Version=0
[libgbafat]
Version=1.0.4
[libndsfat]
Version=1.0.4
[defaultarm7]
Version=0.5.4
[dswifi]
Version=0.3.9
[filesystem]
Version=0.9.2
[maxmodds]
Version=1.0.5