gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Why does many developers forget to add some code?(backlight)

#89548 - HtheB - Sun Jun 25, 2006 12:39 pm

Yes.. the title allready say it..

many homebrew games/apps doesnt include the code that will turn off the backlight while closing the DS lid..

Is it possible (just like the pepsiman loader) to make a batch file thing that will add the code by yourself?

well.. anyone? :)

#89562 - mastertop101 - Sun Jun 25, 2006 3:22 pm

I don't think a batch file would work, it would need to put the code in many places.. (while loops) and well, I don't really see the point of doing it...

#89564 - HtheB - Sun Jun 25, 2006 3:33 pm

mastertop101 wrote:
I don't really see the point of doing it...
? why that?

many application really need this sort of stuff.. like beup :)

#89609 - josath - Sun Jun 25, 2006 7:43 pm

write a patch that includes this code as a easy-to-use function to libnds, and submit it to the libnds maintainers. this will probably get more people to use it, if it's just a matter of calling 1 or 2 functions to init it.

#89616 - HyperHacker - Sun Jun 25, 2006 8:29 pm

Not every app needs it either. For example, I didn't put it in GBA Booter because I can't really see it being likely that someone needs to close the lid for a long time while using it. Generally you'd only be using it for a few seconds at a time.

However I do agree that a lot of apps should have this but don't.
_________________
I'm a PSP hacker now, but I still <3 DS.

#89634 - HtheB - Sun Jun 25, 2006 10:24 pm

cant it be done like the pepsiman loader thing?
(so I can add the code to the .nds file )

#89638 - wintermute - Sun Jun 25, 2006 10:46 pm

HtheB wrote:
cant it be done like the pepsiman loader thing?
(so I can add the code to the .nds file )


no
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#89672 - chatterbug89 - Mon Jun 26, 2006 3:30 am

Thought i'd mention...there's a function in PAlib that does this quite easily.

EDIT: it's PA_CheckLid(); ....it returns 1 if the lid was closed, and if the lid is closed, it pauses untill the lid is opened...though..i'm not totaly sure if it turns off the backlight or not..maybeit doesn't..i have never used it ^^