DefExt enabled again

This commit is contained in:
CaH4e3 2010-05-08 08:24:30 +00:00
parent a507d6c849
commit 111cc48167
9 changed files with 12 additions and 12 deletions

View File

@ -245,7 +245,7 @@ void SaveCDLogFileAs(){
ofn.hInstance=fceu_hInstance;
ofn.lpstrTitle="Save Code Data Log File As...";
ofn.lpstrFilter=filter;
//ofn.lpstrDefExt = "cdl";
ofn.lpstrDefExt = "cdl";
strcpy(nameo,GetRomName());
ofn.lpstrFile=nameo;
ofn.nMaxFile=256;
@ -332,10 +332,10 @@ 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";
ofn.lpstrDefExt = "nsf";
} else {
ofn.lpstrFilter=NESfilter;
//ofn.lpstrDefExt = "nes";
ofn.lpstrDefExt = "nes";
}
strcpy(sromfilename,GetRomName());
ofn.lpstrFile=sromfilename;

View File

@ -298,7 +298,7 @@ void SaveRomAs()
ofn.hInstance=fceu_hInstance;
ofn.lpstrTitle="Save Nes ROM as...";
ofn.lpstrFilter=filter;
//ofn.lpstrDefExt="nes";
ofn.lpstrDefExt="nes";
strcpy(nameo,GetRomName());
ofn.lpstrFile=nameo;
ofn.nMaxFile=256;
@ -646,7 +646,7 @@ void dumpToFile(const char* buffer, unsigned int size)
ofn.hInstance=fceu_hInstance;
ofn.lpstrTitle="Save to file ...";
ofn.lpstrFilter="Binary File (*.BIN)\0*.bin\0All Files (*.*)\0*.*\0\0";
//ofn.lpstrDefExt="bin";
ofn.lpstrDefExt="bin";
strcpy(name,GetRomName());
ofn.lpstrFile=name;
ofn.nMaxFile=256;

View File

@ -406,7 +406,7 @@ static void SaveMemWatch()
ofn.hInstance=fceu_hInstance;
ofn.lpstrTitle="Save Memory Watch As...";
ofn.lpstrFilter=filter;
//ofn.lpstrDefExt="txt";
ofn.lpstrDefExt="txt";
char nameo[2048];
if (!memwLastFilename[0])
strcpy(nameo,GetRomName());

View File

@ -502,7 +502,7 @@ int Change_File_S(char *Dest, char *Dir, char *Titre, char *Filter, char *Ext, H
ofn.nFilterIndex = 1;
ofn.lpstrInitialDir = Dir;
ofn.lpstrTitle = Titre;
//ofn.lpstrDefExt = Ext;
ofn.lpstrDefExt = Ext;
ofn.Flags = OFN_PATHMUSTEXIST | OFN_HIDEREADONLY;
if (GetSaveFileName(&ofn)) {

View File

@ -922,7 +922,7 @@ static BOOL CALLBACK RecordDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LP
ofn.hwndOwner = hwndDlg;
ofn.lpstrFilter = "FCEUX Movie File (*.fm2)\0*.fm2\0All Files (*.*)\0*.*\0\0";
ofn.lpstrFile = szChoice;
//ofn.lpstrDefExt = "fm2";
ofn.lpstrDefExt = "fm2";
ofn.nMaxFile = MAX_PATH;
ofn.Flags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT;
if(GetSaveFileName(&ofn)) {

View File

@ -24,7 +24,7 @@ void FCEUD_SaveStateAs()
ofn.hInstance = fceu_hInstance;
ofn.lpstrTitle = "Save State As...";
ofn.lpstrFilter = filter;
//ofn.lpstrDefExt = "fcs";
ofn.lpstrDefExt = "fcs";
strcpy(nameo,FCEU_MakeFName(FCEUMKF_STATE,CurrentState,0).c_str());
ofn.lpstrFile = nameo;
std::string initdir = FCEU_GetPath(FCEUMKF_STATE);

View File

@ -693,7 +693,7 @@ int TextHookerSaveTableFile(){
ofn.lpstrFilter=filter;
strcpy(nameo,GetRomName());
ofn.lpstrFile=nameo;
//ofn.lpstrDefExt="tht";
ofn.lpstrDefExt="tht";
ofn.nMaxFile=256;
ofn.Flags=OFN_EXPLORER|OFN_HIDEREADONLY|OFN_EXTENSIONDIFFERENT;
ofn.hwndOwner = hCDLogger;

View File

@ -44,7 +44,7 @@ bool CreateSoundSave()
ofn.hInstance=fceu_hInstance;
ofn.lpstrTitle="Log Sound As...";
ofn.lpstrFilter=filter;
//ofn.lpstrDefExt="wav";
ofn.lpstrDefExt="wav";
strcpy(nameo,GetRomName());
ofn.lpstrFile=nameo;
ofn.nMaxFile=256;

View File

@ -2422,7 +2422,7 @@ void FCEUD_AviRecordTo(void)
ofn.hwndOwner = hAppWnd;
ofn.lpstrFilter = "AVI Files (*.avi)\0*.avi\0All Files (*.*)\0*.*\0\0";
ofn.lpstrFile = szChoice;
//ofn.lpstrDefExt = "avi";
ofn.lpstrDefExt = "avi";
ofn.lpstrTitle = "Save AVI as";
ofn.nMaxFile = MAX_PATH;