|
|
| version 1.5, 2004/01/27 10:55:47 | version 1.6, 2004/02/14 08:12:18 |
|---|---|
| Line 385 static const char fddext[] = "d88\088d\0 | Line 385 static const char fddext[] = "d88\088d\0 |
| "xdf\0hdm\0dup\02hd\0tfd\0"; | "xdf\0hdm\0dup\02hd\0tfd\0"; |
| static const char hddtitle[] = "Select HDD image"; | static const char hddtitle[] = "Select HDD image"; |
| static const char sasiext[] = "thd\0nhd\0hdi\0"; | static const char sasiext[] = "thd\0nhd\0hdi\0"; |
| static const char scsiext[] = "hdd\0"; | |
| static const FSELPRM fddprm = {fddtitle, diskfilter, fddext}; | static const FSELPRM fddprm = {fddtitle, diskfilter, fddext}; |
| static const FSELPRM sasiprm = {hddtitle, diskfilter, sasiext}; | static const FSELPRM sasiprm = {hddtitle, diskfilter, sasiext}; |
| #if defined(SUPPORT_SCSI) | |
| static const char scsiext[] = "hdd\0"; | |
| static const FSELPRM scsiprm = {hddtitle, diskfilter, scsiext}; | static const FSELPRM scsiprm = {hddtitle, diskfilter, scsiext}; |
| #endif | |
| void filesel_fdd(REG8 drv) { | void filesel_fdd(REG8 drv) { |
| Line 405 void filesel_fdd(REG8 drv) { | Line 409 void filesel_fdd(REG8 drv) { |
| void filesel_hdd(REG8 drv) { | void filesel_hdd(REG8 drv) { |
| UINT num; | UINT num; |
| char path[MAX_PATH]; | |
| char *p; | char *p; |
| const FSELPRM *prm; | const FSELPRM *prm; |
| char path[MAX_PATH]; | |
| num = drv & 0x0f; | num = drv & 0x0f; |
| p = NULL; | |
| prm = NULL; | |
| if (!(drv & 0x20)) { // SASI/IDE | if (!(drv & 0x20)) { // SASI/IDE |
| if (num >= 2) { | if (num < 2) { |
| return; | p = np2cfg.sasihdd[num]; |
| prm = &sasiprm; | |
| } | } |
| p = np2cfg.sasihdd[num]; | |
| prm = &sasiprm; | |
| } | } |
| #if defined(SUPPORT_SCSI) | |
| else { // SCSI | else { // SCSI |
| if (num >= 4) { | if (num < 4) { |
| return; | p = np2cfg.scsihdd[num]; |
| prm = &scsiprm; | |
| } | } |
| p = np2cfg.scsihdd[num]; | |
| prm = &scsiprm; | |
| } | } |
| if (selectfile(prm, path, sizeof(path), p)) { | #endif |
| if ((prm) && (selectfile(prm, path, sizeof(path), p))) { | |
| diskdrv_sethdd(drv, path); | diskdrv_sethdd(drv, path); |
| } | } |
| } | } |