|
Compiling MAME with visual studio's compiler
08/10/10 05:47 PM
|
|
|
Hey all,
Here are the main issues that I had to resolve to compile MAME with the visual studio compiler:
1) MSVC uses the file extension to decide whether it's c++ or c code, so all of the c++ files had to have their extensions changed to cpp. Also, I wrote a regex to convert all of the #include "*.c" to #include "*.cpp". 2) "interface" is a keyword in MSVC, so I had to prepend all of the "interface"s with something (e.g. dev_interface). 3) alloc and alloca don't exist, so I changed them to malloc and then freed them from the heap before the data went out of scope
If anyone wants these changes, you can grab the ClientServerMAME code and delete the NSM_* files and the code that references those files. All of the code that uses the ClientServer portion is wrapped around if(netClient) or if(netServer) so it isn't hard to remove. The current (0.2) version of ClientServerMAME is based on MAME 0.138.
Check out MAMEHub here: http://www.mamehub.info/
|
|