]> icculus.org git repositories - taylor/freespace2.git/blob - src/freespace2/unixmain.cpp
implemented osregistry
[taylor/freespace2.git] / src / freespace2 / unixmain.cpp
1 #include "pstypes.h"
2 #include "osregistry.h"
3
4 int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int nCmdShow);
5 void vm_dump();
6
7 int main(int argc, char **argv)
8 {
9         /* set some sane defaults since we don't have a laucher... */
10         if (os_config_read_string(NULL, NOX("Videocard"), NULL) == NULL)
11                 os_config_write_string(NULL, NOX("Videocard"), NOX("OpenGL 640x480"));
12         
13         int retr = WinMain(1, 0, "", 0);
14         
15         vm_dump();
16         
17         return retr;    
18 }