![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Isolating PSP specific code within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I'm sure I've seen this somewhere but I can't find it now. Is there a way for isolating PSP specific ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
I'm sure I've seen this somewhere but I can't find it now.
Is there a way for isolating PSP specific code? I'm trying to make my code cross platform so I can easily compile it for both Linux and the PSP. Cheers, Glenn |
|
|
|
|
|
|
#2 |
![]() ![]() Developer
|
Yes, it is a matter of software design. Seperate the rendering/sound/input/setup code from all the game logic which should generally be cross platform. It should be literrally a matter of compiling several different files for each platform.
The other thing you may be thinking of is using #ifdefs. Code:
#ifdef PSP // PSP specific code #else // Whatever other platform #endif Code:
#define PSP 1
__________________
[Blog] [Portfolio] [Homebrew Illuminati - Serious Homebrew Development Forums] [I want to make Homebrew FAQ] [How I broke into the Games Industry] [Programming Book List] [Programming Article List] |
|
|
|
![]() |
| Tags |
| code , isolating , psp , specific |
| Thread Tools | |
|
|