pulkomandy Newbie

Joined: 12 July 2011 Location: France Posts: 1
|
| Posted: 12 July 2011 at 23:15 | IP Logged
|
|
|
Hello there,
I made a port of Road Fighter to my favorite Operating System, Haiku.
Grab it here :
http://pulkomandy.lexinfo.fr/downloads/RoadFighter-Haiku.zip
There were very little changes needed to the source, all related to strange use of strupr. You should avoid this function, since it's nonstandard, and providing your own equivalent shouldn't be too hard (hint: use toupper() for converting a single char).
Since strupr works in-place and overwrites the source string ; and SDL_GetKeyName returns a const char*, you end up trying to write inside a const char*. This is bad thing, and under Haiku, it will crash the game when entering the key redefinition menu.
|