misc/wrapper.c
changeset 4930 5d59bb58c365
parent 4927 95d1c90a626b
equal deleted inserted replaced
4929:3dca560e6510 4930:5d59bb58c365
     4  - compile this file with `gcc libhwLibrary.dylib libSDLmain.a wrapper.c -o wrapper -framework Cocoa -framework SDL'
     4  - compile this file with `gcc libhwLibrary.dylib libSDLmain.a wrapper.c -o wrapper -framework Cocoa -framework SDL'
     5    (in Mac OS X, but this command line shouldn't be much different in other OSes; make sure to set the correct files/paths)
     5    (in Mac OS X, but this command line shouldn't be much different in other OSes; make sure to set the correct files/paths)
     6  - this executable expect a save file "Save.hws" and the data folder "Data" to be in the same launching directory
     6  - this executable expect a save file "Save.hws" and the data folder "Data" to be in the same launching directory
     7  */
     7  */
     8 
     8 
     9 #import <stdlib.h>
     9 #include <stdlib.h>
    10 
    10 
    11 extern void Game (const char **);
    11 extern void Game (const char **);
    12 
    12 
    13 int SDL_main (int argc, const char **argv)
    13 int SDL_main (int argc, const char **argv)
    14 {
    14 {