time(NULL); failing to update on DeSmuME and 3DS in DS mode.

support for the ARM toolchain
Post Reply
Kazo
Posts: 14
Joined: Mon Aug 29, 2011 8:06 am

time(NULL); failing to update on DeSmuME and 3DS in DS mode.

Post by Kazo » Mon Apr 16, 2012 11:55 pm

At first, I thought it was a problem with DeSmuME, but then when I tested it on my 3DS in DS mode it was not working either. it seems to work fine with No$GBA and on a DS Lite. When on DeSmuME or 3DS it seems to get set with the current time at the time it boots but it never is updated as the program is running.

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: time(NULL); failing to update on DeSmuME and 3DS in DS m

Post by WinterMute » Tue Apr 17, 2012 12:07 am

DeSmuME doesn't emulate the interrupt the default arm7 code uses to keep the clock updated, the code works fine on DS, DS Lite and DSi. It does appear to be not working on the 3DS though which seems a little odd given that it obtains the correct time.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest