|
|
| version 1.17, 2004/06/16 12:50:49 | version 1.21, 2004/08/14 03:12:51 |
|---|---|
| Line 102 sighandler(int signo) | Line 102 sighandler(int signo) |
| static struct option longopts[] = { | static struct option longopts[] = { |
| { "config", required_argument, 0, 'c' }, | { "config", required_argument, 0, 'c' }, |
| { "timidity-config", required_argument, 0, 'C' }, | { "timidity-config", required_argument, 0, 'C' }, |
| { "shared-pixmap", no_argument, 0, 'p' }, | |
| #if defined(USE_SDL) || defined(USE_SYSMENU) | #if defined(USE_SDL) || defined(USE_SYSMENU) |
| { "ttfont", required_argument, 0, 't' }, | { "ttfont", required_argument, 0, 't' }, |
| #endif | #endif |
| Line 121 usage(void) | Line 120 usage(void) |
| printf("\t--help [-h] : print this message\n"); | printf("\t--help [-h] : print this message\n"); |
| printf("\t--config [-c] <file> : specify config file\n"); | printf("\t--config [-c] <file> : specify config file\n"); |
| printf("\t--timidity-config [-C] <file> : specify timidity config file\n"); | printf("\t--timidity-config [-C] <file> : specify timidity config file\n"); |
| printf("\t--shared-pixmap [-p] : use MIT-SHM pixmap extention\n"); | |
| #if defined(USE_SDL) || defined(USE_SYSMENU) | #if defined(USE_SDL) || defined(USE_SYSMENU) |
| printf("\t--ttfont [-t] <file> : specify TrueType font\n"); | printf("\t--ttfont [-t] <file> : specify TrueType font\n"); |
| #endif | #endif |
| Line 140 main(int argc, char *argv[]) | Line 138 main(int argc, char *argv[]) |
| int rv = 1; | int rv = 1; |
| int ch; | int ch; |
| int i, drvmax; | int i, drvmax; |
| BOOL shared_pixmap_flag = FALSE; | |
| progname = argv[0]; | progname = argv[0]; |
| Line 178 main(int argc, char *argv[]) | Line 175 main(int argc, char *argv[]) |
| milstr_ncpy(fontfilename, optarg, sizeof(fontfilename)); | milstr_ncpy(fontfilename, optarg, sizeof(fontfilename)); |
| break; | break; |
| case 'p': | |
| shared_pixmap_flag = TRUE; | |
| break; | |
| case 'h': | case 'h': |
| case '?': | case '?': |
| default: | default: |
| Line 258 main(int argc, char *argv[]) | Line 251 main(int argc, char *argv[]) |
| mmxflag += np2oscfg.disablemmx ? MMXFLAG_DISABLE : 0; | mmxflag += np2oscfg.disablemmx ? MMXFLAG_DISABLE : 0; |
| #endif | #endif |
| use_shared_pixmap = np2oscfg.shared_pixmap && shared_pixmap_flag; | use_shared_pixmap = np2oscfg.shared_pixmap; |
| TRACEINIT(); | TRACEINIT(); |
| Line 302 main(int argc, char *argv[]) | Line 295 main(int argc, char *argv[]) |
| } | } |
| } | } |
| joymng_initialize(); | |
| mousemng_initialize(); | mousemng_initialize(); |
| if (np2oscfg.MOUSE_SW) { | if (np2oscfg.MOUSE_SW) { |
| mouse_running(MOUSE_ON); | mouse_running(MOUSE_ON); |
| Line 311 main(int argc, char *argv[]) | Line 305 main(int argc, char *argv[]) |
| sysmng_initialize(); | sysmng_initialize(); |
| taskmng_initialize(); | taskmng_initialize(); |
| joy_init(); | |
| pccore_init(); | pccore_init(); |
| S98_init(); | S98_init(); |
| Line 332 main(int argc, char *argv[]) | Line 325 main(int argc, char *argv[]) |
| } | } |
| } | } |
| #if !defined(CPUCORE_IA32) | |
| if (np2oscfg.resume) { | if (np2oscfg.resume) { |
| flagload(np2resumeext, "Resume", FALSE); | flagload(np2resumeext, "Resume", FALSE); |
| } | } |
| #endif | |
| sysmng_workclockreset(); | sysmng_workclockreset(); |
| drvmax = (argc < 4) ? argc : 4; | drvmax = (argc < 4) ? argc : 4; |
| Line 356 main(int argc, char *argv[]) | Line 351 main(int argc, char *argv[]) |
| pccore_cfgupdate(); | pccore_cfgupdate(); |
| mouse_running(MOUSE_OFF); | mouse_running(MOUSE_OFF); |
| joymng_deinitialize(); | |
| S98_trash(); | S98_trash(); |
| #if !defined(CPUCORE_IA32) | |
| if (np2oscfg.resume) { | if (np2oscfg.resume) { |
| flagsave(np2resumeext); | flagsave(np2resumeext); |
| } else { | } else { |
| flagdelete(np2resumeext); | flagdelete(np2resumeext); |
| } | } |
| #endif | |
| pccore_term(); | pccore_term(); |
| debugwin_destroy(); | debugwin_destroy(); |