make previous fixes more windows specific ;) why not let windows handle this instead of doing it by own hand?
filled all defext options for all save dialogs
This commit is contained in:
parent
0bbf59739b
commit
52f6cdf5be
|
@ -245,8 +245,8 @@ void SaveCDLogFileAs(){
|
|||
ofn.hInstance=fceu_hInstance;
|
||||
ofn.lpstrTitle="Save Code Data Log File As...";
|
||||
ofn.lpstrFilter=filter;
|
||||
ofn.lpstrDefExt = "cdl";
|
||||
strcpy(nameo,GetRomName());
|
||||
strcat(nameo,".cdl");
|
||||
ofn.lpstrFile=nameo;
|
||||
ofn.nMaxFile=256;
|
||||
ofn.Flags=OFN_EXPLORER|OFN_FILEMUSTEXIST|OFN_HIDEREADONLY;
|
||||
|
@ -329,17 +329,13 @@ void SaveStrippedRom(){ //this is based off of iNesSave()
|
|||
ofn.lpstrTitle="Save Stripped File As...";
|
||||
if (GameInfo->type==GIT_NSF) {
|
||||
ofn.lpstrFilter=NSFfilter;
|
||||
ofn.lpstrDefExt = "nsf";
|
||||
}
|
||||
else {
|
||||
ofn.lpstrFilter=NESfilter;
|
||||
ofn.lpstrDefExt = "nes";
|
||||
}
|
||||
strcpy(sromfilename,GetRomName());
|
||||
if (GameInfo->type==GIT_NSF) {
|
||||
strcat(sromfilename,"_cdl.nsf");
|
||||
}
|
||||
else {
|
||||
strcat(sromfilename,"_cdl.nes");
|
||||
}
|
||||
ofn.lpstrFile=sromfilename;
|
||||
ofn.nMaxFile=256;
|
||||
ofn.Flags=OFN_EXPLORER|OFN_FILEMUSTEXIST|OFN_HIDEREADONLY;
|
||||
|
|
|
@ -294,6 +294,7 @@ void SaveRomAs()
|
|||
ofn.hInstance=fceu_hInstance;
|
||||
ofn.lpstrTitle="Save Nes ROM as...";
|
||||
ofn.lpstrFilter=filter;
|
||||
ofn.lpstrDefExt="nes";
|
||||
strcpy(nameo,GetRomName());
|
||||
ofn.lpstrFile=nameo;
|
||||
ofn.nMaxFile=256;
|
||||
|
|
|
@ -406,6 +406,7 @@ static void SaveMemWatch()
|
|||
ofn.hInstance=fceu_hInstance;
|
||||
ofn.lpstrTitle="Save Memory Watch As...";
|
||||
ofn.lpstrFilter=filter;
|
||||
ofn.lpstrDefExt="txt";
|
||||
char nameo[2048];
|
||||
if (!memwLastFilename[0])
|
||||
strcpy(nameo,GetRomName());
|
||||
|
|
|
@ -591,8 +591,8 @@ void ShowLogDirDialog(void){
|
|||
ofn.hInstance=fceu_hInstance;
|
||||
ofn.lpstrTitle="Log Trace As...";
|
||||
ofn.lpstrFilter=filter;
|
||||
ofn.lpstrDefExt="log";
|
||||
strcpy(nameo,GetRomName());
|
||||
strcat(nameo,"_log.txt");
|
||||
ofn.lpstrFile=nameo;
|
||||
ofn.nMaxFile=256;
|
||||
ofn.Flags=OFN_EXPLORER|OFN_FILEMUSTEXIST|OFN_HIDEREADONLY;
|
||||
|
|
|
@ -44,6 +44,7 @@ bool CreateSoundSave()
|
|||
ofn.hInstance=fceu_hInstance;
|
||||
ofn.lpstrTitle="Log Sound As...";
|
||||
ofn.lpstrFilter=filter;
|
||||
ofn.lpstrDefExt="wav";
|
||||
strcpy(nameo,GetRomName());
|
||||
ofn.lpstrFile=nameo;
|
||||
ofn.nMaxFile=256;
|
||||
|
|
Loading…
Reference in New Issue