Here is a quick list of changes I made in order to compile it:Originally Posted by savage
:arrow: NDS needs "uses types;" only
:arrow: libSDL.a depends from libnds9.a and some other gcc libs:
[pascal]{$IFDEF NDS}
SDLLibName = 'libSDL.a';
{$]
:arrow: I have commented out all SDL_mutex and thread parts
:arrow: All external funcs are declared as:
[pascal]
function SDL_Init( flags : UInt32 ) : Integer;
cdecl; external {$IFNDEF NDS}{$IFDEF __GPC__}name 'SDL_Init'{$ELSE} SDLLibName{$ENDIF __GPC__}{$ENDIF NDS};
[/pascal]
That's all
As I said, it compiles fine but I dont' know if it works too
Bookmarks