These are the files I changed from the mp2x code for compiling it on the open2x toolchain. I think it is mp2x version 3.

The original files are included too with a underscore as prefix in the filename, so you can easily check the differences.

I recompiled libSDL_inifile, make sure you have the right header file and lib in place. (sources available on the gph svn: http://svn.gp2x.com/gp2x/tag/library/2006.02.24/SDL_config/)

I also recompiled libunicodefont. (those sources can be found on http://www.gp32spain.com/foros/attachment.php?attachmentid=12810&d=1161017317 or in emugp2x_src_051127.zip in the gp2x archive).

Another modification was adding "extern int SDL_videofd;" in SDL.h, since I was planning on adding this modification to the open2x SDL. You can manually add this in the files of mp2x when needed (where it gives warnings), maybe until it is added to open2x SDL. Currently SDL_videofd is set in the main method in gv.c.

The clock speed also doesn't change (it is commented right now) because of a function call that is not available in the open2x SDL. The source for the clock change can be found on the wiki and can be easily added to mp2x when needed. Check filelistview.c, search for SDL_SYS_JoyStickGp2xSys.

Tested with arm-open2x-linux-apps-gcc-4.1.1-glibc-2.3.6 toolchain on linux and windows (cygwin).

Lithosphere