PDA

View Full Version : PersonalData struct and gbascreen in DKA r20



TeenDev
April 16th, 2007, 03:42
Has anyone found a successful way to use older GBA booting codes in DKA r20 with the structure changes?



PersonalData->_user_data.gbascreen
is supposed to work

but when I use it it comes up with:

error: 'struct <anonymous>' has no member named 'gbascreen'

someone said it does that when in C99 mode. Any suggestion? What are your thoughts?

quzar
April 17th, 2007, 16:48
That seems like the kind of error that would be given due to the fact that you're grabbing a struct out of a struct, one of which is a pointer and the other isn't. Try first extracting the inner struct to a new variable, then getting the value out of it.

TeenDev
May 14th, 2007, 03:59
I figured out wat I did wrong... its pretty clueless of me but I didn't capitolize the 'S' in 'gbaScreen'