I have the feeling that under GP2X the FPC version of getenv may be broken or that SDL should be using the C getenv and not the FPC fpgetenv. Could you try the following just to be sure where the commented code is...Originally Posted by paul_nicholls
[pascal]{$IFDEF UNIX}
{$IFDEF FPC}
{$IFDEF GP2X}
result := getenv(......);
{$ELSE}
result := fpcgetenv(......);
{$ENDIF}
{$ENDIF}
{$ENDIF}[/pascal]
Bookmarks