|
|
| version 1.3, 2003/11/21 06:51:15 | version 1.5, 2004/03/31 14:02:51 |
|---|---|
| Line 5 | Line 5 |
| #include "strres.h" | #include "strres.h" |
| #include "resource.h" | #include "resource.h" |
| #include "np2.h" | #include "np2.h" |
| #include "dosio.h" | |
| #include "joymng.h" | #include "joymng.h" |
| #include "sysmng.h" | #include "sysmng.h" |
| #include "menu.h" | #include "menu.h" |
| Line 972 void dialog_sndopt(HWND hWnd) { | Line 973 void dialog_sndopt(HWND hWnd) { |
| // ---- | // ---- |
| #if defined(SUPPORT_S98) | |
| static const char s98ui_file[] = "NP2_%04d.S98"; | static const char s98ui_file[] = "NP2_%04d.S98"; |
| static const char s98ui_title[] = "Save as S98 log"; | static const char s98ui_title[] = "Save as S98 log"; |
| static const char s98ui_ext[] = "s98"; | static const char s98ui_ext[] = "s98"; |
| Line 981 static const FILESEL s98ui = {s98ui_titl | Line 983 static const FILESEL s98ui = {s98ui_titl |
| void dialog_s98(HWND hWnd) { | void dialog_s98(HWND hWnd) { |
| BOOL check; | BOOL check; |
| const char *p; | char path[MAX_PATH]; |
| S98_close(); | S98_close(); |
| check = FALSE; | check = FALSE; |
| p = dlgs_selectwritenum(hWnd, &s98ui, s98ui_file, | file_cpyname(path, bmpfilefolder, sizeof(path)); |
| bmpfilefolder, sizeof(bmpfilefolder)); | file_cutname(path); |
| if ((p != NULL) && (S98_open(p) == SUCCESS)) { | file_catname(path, s98ui_file, sizeof(path)); |
| if ((dlgs_selectwritenum(hWnd, &s98ui, path, sizeof(path))) && | |
| (S98_open(path) == SUCCESS)) { | |
| file_cpyname(bmpfilefolder, path, sizeof(bmpfilefolder)); | |
| sysmng_update(SYS_UPDATEOSCFG); | |
| check = TRUE; | check = TRUE; |
| } | } |
| xmenu_sets98logging(check); | xmenu_sets98logging(check); |
| } | } |
| #endif | |
| // ---- | |
| #if defined(SUPPORT_WAVEREC) | |
| static const char wrui_file[] = "NP2_%04d.WAV"; | |
| static const char wrui_title[] = "Save as Sound"; | |
| static const char wrui_ext[] = "WAV"; | |
| static const char wrui_filter[] = "Wave files (*.wav)\0*.wav\0"; | |
| static const FILESEL wrui = {wrui_title, wrui_ext, wrui_filter, 1}; | |
| void dialog_waverec(HWND hWnd) { | |
| BYTE check; | |
| char path[MAX_PATH]; | |
| check = FALSE; | |
| sound_recstop(); | |
| file_cpyname(path, bmpfilefolder, sizeof(path)); | |
| file_cutname(path); | |
| file_catname(path, wrui_file, sizeof(path)); | |
| if ((dlgs_selectwritenum(hWnd, &wrui, path, sizeof(path))) && | |
| (sound_recstart(path) == SUCCESS)) { | |
| file_cpyname(bmpfilefolder, path, sizeof(bmpfilefolder)); | |
| sysmng_update(SYS_UPDATEOSCFG); | |
| check = TRUE; | |
| } | |
| xmenu_setwaverec(check); | |
| } | |
| #endif | |