]> icculus.org git repositories - taylor/freespace2.git/blob - src/freespace2/unixmain.cpp
fix inconsistency
[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         if (os_config_read_string(NULL, NOX("NetworkConnection"), NULL) == NULL)
14                 os_config_write_string(NULL, NOX("NetworkConnection"), NOX("lan"));
15         
16         if (os_config_read_string(NULL, NOX("ConnectionSpeed"), NULL) == NULL)
17                 os_config_write_string(NULL, NOX("ConnectionSpeed"), NOX("Slow"));              
18         
19         int retr = WinMain(1, 0, "", 0);
20         
21         vm_dump();
22         
23         return retr;    
24 }