From 111cc4816784f5f6a23cd2e15692654ea59028e7 Mon Sep 17 00:00:00 2001 From: CaH4e3 Date: Sat, 8 May 2010 08:24:30 +0000 Subject: [PATCH] DefExt enabled again --- src/drivers/win/cdlogger.cpp | 6 +++--- src/drivers/win/memview.cpp | 4 ++-- src/drivers/win/memwatch.cpp | 2 +- src/drivers/win/ramwatch.cpp | 2 +- src/drivers/win/replay.cpp | 2 +- src/drivers/win/state.cpp | 2 +- src/drivers/win/texthook.cpp | 2 +- src/drivers/win/wave.cpp | 2 +- src/drivers/win/window.cpp | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/drivers/win/cdlogger.cpp b/src/drivers/win/cdlogger.cpp index 6a6aa10c..ab61d561 100644 --- a/src/drivers/win/cdlogger.cpp +++ b/src/drivers/win/cdlogger.cpp @@ -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; diff --git a/src/drivers/win/memview.cpp b/src/drivers/win/memview.cpp index 15bdcb65..ef2b0ddf 100644 --- a/src/drivers/win/memview.cpp +++ b/src/drivers/win/memview.cpp @@ -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; diff --git a/src/drivers/win/memwatch.cpp b/src/drivers/win/memwatch.cpp index a098baaf..583f2a83 100644 --- a/src/drivers/win/memwatch.cpp +++ b/src/drivers/win/memwatch.cpp @@ -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()); diff --git a/src/drivers/win/ramwatch.cpp b/src/drivers/win/ramwatch.cpp index ac22a92a..517a8a49 100644 --- a/src/drivers/win/ramwatch.cpp +++ b/src/drivers/win/ramwatch.cpp @@ -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)) { diff --git a/src/drivers/win/replay.cpp b/src/drivers/win/replay.cpp index 594d34e2..697d8fe0 100644 --- a/src/drivers/win/replay.cpp +++ b/src/drivers/win/replay.cpp @@ -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)) { diff --git a/src/drivers/win/state.cpp b/src/drivers/win/state.cpp index a31887ce..b505226d 100644 --- a/src/drivers/win/state.cpp +++ b/src/drivers/win/state.cpp @@ -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); diff --git a/src/drivers/win/texthook.cpp b/src/drivers/win/texthook.cpp index 69a4f6d2..b30619d6 100644 --- a/src/drivers/win/texthook.cpp +++ b/src/drivers/win/texthook.cpp @@ -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; diff --git a/src/drivers/win/wave.cpp b/src/drivers/win/wave.cpp index 0c487691..cdd4efcf 100644 --- a/src/drivers/win/wave.cpp +++ b/src/drivers/win/wave.cpp @@ -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; diff --git a/src/drivers/win/window.cpp b/src/drivers/win/window.cpp index 1d8400f6..4b515f16 100644 --- a/src/drivers/win/window.cpp +++ b/src/drivers/win/window.cpp @@ -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;