|
|
| version 1.15, 2005/04/05 09:12:24 | version 1.18, 2007/07/20 14:39:12 |
|---|---|
| Line 14 | Line 14 |
| #include "newdisk.h" | #include "newdisk.h" |
| static const TCHAR fddui_title[] = _T("Select floppy image"); | //static const TCHAR fddui_title[] = _T("Select floppy image"); |
| static const TCHAR fddui_filter[] = \ | static const TCHAR fddui_filter[] = \ |
| _T("D88 image files (*.D88;*.D98)\0") \ | _T("D88 image files (*.D88;*.D98)\0") \ |
| _T("*.d88;*.88d;*.d98;*.98d\0") \ | _T("*.d88;*.88d;*.d98;*.98d\0") \ |
| Line 24 static const TCHAR fddui_filter[] = | Line 24 static const TCHAR fddui_filter[] = |
| _T("*.d88;*.88d;*.d98;*.98d;*.fdi;") \ | _T("*.d88;*.88d;*.d98;*.98d;*.fdi;") \ |
| _T("*.xdf;*.hdm;*.dup;*.2hd;*.tfd\0") \ | _T("*.xdf;*.hdm;*.dup;*.2hd;*.tfd\0") \ |
| _T("All files (*.*)\0*.*\0"); | _T("All files (*.*)\0*.*\0"); |
| static const FILESEL fddui = {fddui_title, tchar_d88, fddui_filter, 3}; | static const FILESEL fddui = {MAKEINTRESOURCE(IDS_FDDTITLE), tchar_d88, fddui_filter, 3}; |
| #if defined(SUPPORT_SASI) | //#if defined(SUPPORT_SASI) |
| static const TCHAR sasiui_title[] = _T("Select SASI/IDE HDD image"); | //static const TCHAR sasiui_title[] = _T("Select SASI/IDE HDD image"); |
| #else | //#else |
| static const TCHAR sasiui_title[] = _T("Select HDD image"); | //static const TCHAR sasiui_title[] = _T("Select HDD image"); |
| #endif | //#endif |
| static const TCHAR sasiui_filter[] = \ | static const TCHAR sasiui_filter[] = \ |
| _T("Anex86 harddisk image files (*.HDI)\0") \ | _T("Anex86 harddisk image files (*.HDI)\0") \ |
| _T("*.hdi\0") \ | _T("*.hdi\0") \ |
| Line 40 static const TCHAR sasiui_filter[] = | Line 40 static const TCHAR sasiui_filter[] = |
| _T("*.nhd\0") \ | _T("*.nhd\0") \ |
| _T("All supported Files\0") \ | _T("All supported Files\0") \ |
| _T("*.thd;*.nhd;*.hdi\0"); | _T("*.thd;*.nhd;*.hdi\0"); |
| static const FILESEL sasiui = {sasiui_title, tchar_thd, sasiui_filter, 4}; | #if defined(SUPPORT_SASI) |
| static const FILESEL sasiui = {MAKEINTRESOURCE(IDS_HDDTITLE), tchar_thd, sasiui_filter, 4}; | |
| #else // defined(SUPPORT_SASI) | |
| static const FILESEL sasiui = {MAKEINTRESOURCE(IDS_SCSITITLE), tchar_thd, sasiui_filter, 4}; | |
| #endif // defined(SUPPORT_SASI) | |
| #if defined(SUPPORT_IDEIO) | #if defined(SUPPORT_IDEIO) |
| static const TCHAR isoui_title[] = _T("Select ISO-9660 image"); | static const TCHAR isoui_title[] = _T("Select ISO-9660 image"); |
| Line 351 const OEMCHAR *ext; | Line 355 const OEMCHAR *ext; |
| if (!dlgs_selectwritefile(hWnd, &newdiskui, path, NELEMENTS(path))) { | if (!dlgs_selectwritefile(hWnd, &newdiskui, path, NELEMENTS(path))) { |
| return; | return; |
| } | } |
| hinst = (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE); | hinst = (HINSTANCE)GetWindowLongPtr(hWnd, GWLP_HINSTANCE); |
| ext = file_getext(path); | ext = file_getext(path); |
| if (!file_cmpname(ext, str_thd)) { | if (!file_cmpname(ext, str_thd)) { |
| hddsize = 0; | hddsize = 0; |