• Welcome to SCdev.org. Please log in.

Welcome to the new SCdev forums!

Request - R4 GBA-Mode switcher

Started by iisdev, August 16, 2007, 04:36:29 AM

Previous topic - Next topic

iisdev

Hi there,

The third icon on the R4DS menu boots slot 2 in DS mode when the flash cart (in slot 2) has an available DS mode area. There's currently no way to force the R4DS to boot slot 2 in GBA mode and I'd like to see a R4 (theme-compatible) solution made.

Fortunately most of the hard work seems to be done! Here is a link to gbaswitch.ds which boots slot 2 in GBA mode.
http://www.cryptosystem.org/archives/2007/01/simple-gba-mode-switcher/

Can someone volunteer to modify this source code to display the (current) theme's gbaframe.bmp *before* switching to GBA mode? It should work something like this:

1. In the R4 file listing the user selects gbaswitch.ds and runs it
2. gbaswitch.ds checks the clock and determines the number of the current month (e.g. august = 08)
3. gbaswitch.ds then looks for gbaframe.bmp in the following folder: /_system_/themes/theme08/
4. if /_system_/themes/theme08/gbaframe.bmp is present it's displayed on the (preferred) screen and gbaswitch.ds then switches to GBA mode
5. if /_system_/themes/theme08/gbaframe.bmp was not found gbaswitch then checks the following folder: /_system_/
6. if /_system_/gbaframe.bmp is present it's displayed (on the preferred) screen and gbaswitch.ds then switches to GBA mode
7. if gbaswitch.ds fails to find gbaframe.bmp in both searches the screen remains black and it switched to GBA mode (default behavior)

Did I explain that well? This would be a fantastic option for the skinning community too!

If you can't volunteer your time to work on this can you please help point to (clear, commented) sample code to do the following:
- check the built in clock, determine the month number in (2) digit format
- check for the existence of a file (gbaframe.bmp) on the R4 file system
- load a 16bit 256x192 bmp from the R4 file system

I think if I had example code for the above I might be able to do this myself. Of course a guru probably could write this in about 15 minutes. :p

Please let me know if you can help! Thank you

fexo

Maybe I'm being a bit stupid here, but why can't you just try using the firmware.nds, which will bring you back to the normal DS boot screen. This allows Pictochat and booting (I assume) from the slot 2 card.

http://www.scdev.org/forum/index.php?topic=10953.0

felix

fexo: iisdev wants a GBA launcher with border.
size=8]DS3, FM7, SCmSD1.80/2.60, WRT54GL with Tomato Firmware[/size]

fexo