Is there a way to change the amount of titles you scroll through on open agb when pressing left or right on the d-pad? I feel like it skips too many titles at once. (About 25. I counted) I want to be able to lessen it to maybe skipping 10 titles at a time.
It's hard coded, the only way to change it would be to modify the
SCREEN_ROWS macro in file
open_agb_firm/source/arm11/filebrowser.c and then recompile the project.
(You're almost right, it's set to 24 in the code.)
Edit: ok, the above is not ideal since SCREEN_ROWS also controls how many titles are displayed on screen. But one can just as easily create a new macro called ROWS_TO_SKIP (or something like that, the name does not interfere)
C:
#define ROWS_TO_SKIP (12u)
(To me 12 felt good because then if you press RIGHT two times it will skip a whole screen.)
Then we change two lines; in the block
C:
if(kDown & KEY_DRIGHT)
{
cursorPos += SCREEN_ROWS;
if((u32)cursorPos > num) cursorPos = num - 1;
}
if(kDown & KEY_DLEFT)
{
cursorPos -= SCREEN_ROWS;
if(cursorPos < -1) cursorPos = 0;
}
we change to
C:
if(kDown & KEY_DRIGHT)
{
cursorPos += ROWS_TO_SKIP;
if((u32)cursorPos > num) cursorPos = num - 1;
}
if(kDown & KEY_DLEFT)
{
cursorPos -= ROWS_TO_SKIP;
if(cursorPos < -1) cursorPos = 0;
}
Then compile and the new version of the firm will be hard coded to skip 12 titles (or however many you decide to set in the #define) when we press RIGHT on the d-pad.
A more flexible solution is to add this number as a configurable entry in the
config.ini file.
However, this requires more modifications and makes the config file for the new version incompatible with that of the official release.
I've done both versions described above (hard coded to skip 12 and configurable via config.ini); if anyone cares to check out I can upload either (or both) of them.