#57804 - legalize - Tue Oct 18, 2005 5:35 pm
I was looking at some GBA source and it was including agb.h
This file doesn't appear in devkitadvance or other tools I've been looking at.
Where does it come from?
Thanks
#57818 - Fatnickc - Tue Oct 18, 2005 6:53 pm
You make it yourself, or more commonly copy it from tutorials and eventually improve it. gba.h/agb.h generally includes 4+ other headers including defines and the like for video, sound and all aspects of things. Where you see, for example, Code: |
setMode(MODE_4 | BG2_ENABLE | OBJ_ENABLE | OBJ_MAP_1D); |
all of those words could be written as addresses, but to make life simpler we use defines.
#57836 - legalize - Tue Oct 18, 2005 9:02 pm
So does that mean that everyone is homebrewing their includes and there is no standard set of includes with standard symbols for the registers and whatnot?
#57837 - Fatnickc - Tue Oct 18, 2005 9:06 pm
Yes.
For example, when I first learnt how to fade, I didn't have the same names for the same addresses as the person who's code I was using did.
#57851 - tepples - Tue Oct 18, 2005 9:50 pm
I used to use my own names ("pin8gba.h") but nowadays it seems that most people are moving to the names used in libgba, which comes with devkitARM when you use the devkitPro installer.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#57978 - legalize - Wed Oct 19, 2005 7:21 pm
When I went to install devkitarm, I was just taken to a web page with a bunch of zip files and no real instructions. After unpacking everything, I still didn't seem to have any GBA related stuff. I found libgba separately. Is this "DevkitPro" thing something that has to be purchased?
#57986 - wintermute - Wed Oct 19, 2005 8:45 pm
#57987 - legalize - Wed Oct 19, 2005 8:49 pm
No, that's not the page. The download page just gives you a bunch of links to the sourceforge site, which has packages with no explanations of what is what.
#57990 - tepples - Wed Oct 19, 2005 9:12 pm
Downloading a package from SourceForge.net typically takes three steps: - Choose a package. In this case, you want "installer", also called "devkitPro Updater".
- Choose a version. You typically want the latest version for your operating system and hardware architecture (32-bit Windows unless you have a reason otherwise).
- Choose the mirror closest to you so that your download doesn't have to cross a transoceanic link.
For now, you can skip to step 3.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#57996 - legalize - Wed Oct 19, 2005 9:25 pm
Ah. So the "updater" is really the installer. I kept looking at that thinking it was for upgrading an existing version.