|
|
| version 1.4, 2003/11/20 14:05:04 | version 1.6, 2003/11/26 14:55:01 |
|---|---|
| Line 94 sighandler(int signo) | Line 94 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' }, |
| { "no-shared-pixmap", no_argument, 0, 'p' }, | |
| { "help", no_argument, 0, 'h' }, | { "help", no_argument, 0, 'h' }, |
| { 0, 0, 0, 0 }, | { 0, 0, 0, 0 }, |
| }; | }; |
| Line 120 main(int argc, char *argv[]) | Line 121 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 = TRUE; | |
| progname = argv[0]; | progname = argv[0]; |
| toolkit_initialize(); | toolkit_initialize(); |
| toolkit_arginit(&argc, &argv); | toolkit_arginit(&argc, &argv); |
| while ((ch = getopt_long(argc, argv, "c:C:h", longopts, NULL)) != -1) { | while ((ch = getopt_long(argc, argv, "c:C:nh", longopts, NULL)) != -1) { |
| switch (ch) { | switch (ch) { |
| case 'c': | case 'c': |
| if (stat(optarg, &sb) < 0 || !S_ISREG(sb.st_mode)) { | if (stat(optarg, &sb) < 0 || !S_ISREG(sb.st_mode)) { |
| Line 149 main(int argc, char *argv[]) | Line 151 main(int argc, char *argv[]) |
| sizeof(timidity_cfgfile_path)); | sizeof(timidity_cfgfile_path)); |
| break; | break; |
| case 'p': | |
| shared_pixmap_flag = FALSE; | |
| break; | |
| case 'h': | case 'h': |
| case '?': | case '?': |
| default: | default: |
| Line 224 main(int argc, char *argv[]) | Line 230 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; | |
| TRACEINIT(); | TRACEINIT(); |
| keystat_reset(); | keystat_reset(); |
| Line 250 main(int argc, char *argv[]) | Line 258 main(int argc, char *argv[]) |
| result = soundmng_pcmload(SOUND_PCMSEEK1, file_getcd("fddseek1.wav")); | result = soundmng_pcmload(SOUND_PCMSEEK1, file_getcd("fddseek1.wav")); |
| if (!result) { | if (!result) { |
| soundmng_pcmload(SOUND_PCMSEEK1, SYSRESPATH "/wav/fddseek1.wav"); | result = soundmng_pcmload(SOUND_PCMSEEK1, SYSRESPATH "/wav/fddseek1.wav"); |
| } | } |
| if (result) { | if (result) { |
| soundmng_pcmvolume(SOUND_PCMSEEK1, np2cfg.MOTORVOL); | soundmng_pcmvolume(SOUND_PCMSEEK1, np2cfg.MOTORVOL); |
| Line 331 resource_cleanup: | Line 339 resource_cleanup: |
| TRACETERM(); | TRACETERM(); |
| dosio_term(); | dosio_term(); |
| toolkit_terminate(); | |
| return rv; | return rv; |
| } | } |