small fixes
This commit is contained in:
1 parent
4907afd9f3
commit
6c2d0cf162
2 files changed
+6
-3
No files matched your search
+4
-3
@@ -84,12 +84,13 @@ Inputs *hidRead(){
|
|||||||
Inputs *hidWaitMask(u32 mask){
|
Inputs *hidWaitMask(u32 mask){
|
||||||
Inputs *in = hidRead();
|
Inputs *in = hidRead();
|
||||||
|
|
||||||
while (in->buttons)
|
while (in->buttons & mask)
|
||||||
hidRead();
|
hidRead();
|
||||||
|
|
||||||
while ((in->buttons & mask) == 0){
|
while (!(in->buttons & mask)){
|
||||||
in = hidRead();
|
hidRead();
|
||||||
}
|
}
|
||||||
|
|
||||||
return in;
|
return in;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -191,9 +191,11 @@ int filemenu(menu_entry file){
|
|||||||
break;
|
break;
|
||||||
case FILE_SCRIPT:
|
case FILE_SCRIPT:
|
||||||
//ParseScript(fsutil_getnextloc(currentpath, file.name));
|
//ParseScript(fsutil_getnextloc(currentpath, file.name));
|
||||||
|
/*
|
||||||
gfx_printf(" %kRelease any buttons if held!", COLOR_RED);
|
gfx_printf(" %kRelease any buttons if held!", COLOR_RED);
|
||||||
|
|
||||||
while (hidRead()->buttons);
|
while (hidRead()->buttons);
|
||||||
|
*/
|
||||||
|
|
||||||
runScript(fsutil_getnextloc(currentpath, file.name));
|
runScript(fsutil_getnextloc(currentpath, file.name));
|
||||||
fsreader_readfolder(currentpath);
|
fsreader_readfolder(currentpath);
|
||||||
|
|||||||
Reference in new issue
Block a user