|
|
| version 1.19, 2004/07/05 14:31:52 | version 1.26, 2007/01/22 16:37:51 |
|---|---|
| Line 10 | Line 10 |
| * 2. Redistributions in binary form must reproduce the above copyright | * 2. Redistributions in binary form must reproduce the above copyright |
| * notice, this list of conditions and the following disclaimer in the | * notice, this list of conditions and the following disclaimer in the |
| * documentation and/or other materials provided with the distribution. | * documentation and/or other materials provided with the distribution. |
| * 3. The name of the author may not be used to endorse or promote products | |
| * derived from this software without specific prior written permission. | |
| * | * |
| * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| Line 144 main(int argc, char *argv[]) | Line 142 main(int argc, char *argv[]) |
| toolkit_initialize(); | toolkit_initialize(); |
| toolkit_arginit(&argc, &argv); | toolkit_arginit(&argc, &argv); |
| while ((ch = getopt_long(argc, argv, "c:C:t:ph", longopts, NULL)) != -1) { | while ((ch = getopt_long(argc, argv, "c:C:t:vh", 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 175 main(int argc, char *argv[]) | Line 173 main(int argc, char *argv[]) |
| milstr_ncpy(fontfilename, optarg, sizeof(fontfilename)); | milstr_ncpy(fontfilename, optarg, sizeof(fontfilename)); |
| break; | break; |
| case 'v': | |
| verbose = 1; | |
| break; | |
| case 'h': | case 'h': |
| case '?': | case '?': |
| default: | default: |
| Line 251 main(int argc, char *argv[]) | Line 253 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; | |
| TRACEINIT(); | TRACEINIT(); |
| if (fontmng_init() != SUCCESS) | if (fontmng_init() != SUCCESS) |
| Line 295 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 304 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 325 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; |
| for (i = 0; i < drvmax; i++) { | for (i = 0; i < drvmax; i++) { |
| milstr_ncpy(diskdrv_fname[i],argv[i],sizeof(diskdrv_fname[0])); | diskdrv_readyfdd(i, argv[i], 0); |
| diskdrv_delay[i] = 1; | |
| } | } |
| setup_signal(SIGINT, sighandler); | setup_signal(SIGINT, sighandler); |
| Line 349 main(int argc, char *argv[]) | Line 350 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(); |
| soundmng_deinitialize(); | soundmng_deinitialize(); |
| scrnmng_destroy(); | scrnmng_destroy(); |
| scrnmng_terminate(); | |
| scrnmng_failure: | scrnmng_failure: |
| sysmenu_destroy(); | sysmenu_destroy(); |