auto-fill .fcs extension in save state as dialog

This commit is contained in:
zeromus 2008-08-06 19:05:19 +00:00
parent d82960c553
commit 1e3e179dda
1 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@
**/
void FCEUD_SaveStateAs()
{
const char filter[] = FCEU_NAME" Save State(*.fc?)\0*.fc?\0";
const char filter[] = FCEU_NAME" Save State (*.fc?)\0*.fc?\0";
char nameo[2048];
OPENFILENAME ofn;
@ -14,6 +14,7 @@ void FCEUD_SaveStateAs()
ofn.hInstance = fceu_hInstance;
ofn.lpstrTitle = "Save State As...";
ofn.lpstrFilter = filter;
ofn.lpstrDefExt = "fcs";
nameo[0] = 0;
ofn.lpstrFile = nameo;
ofn.nMaxFile = 256;
@ -30,7 +31,7 @@ void FCEUD_SaveStateAs()
**/
void FCEUD_LoadStateFrom()
{
const char filter[]= FCEU_NAME" Save State(*.fc?)\0*.fc?\0";
const char filter[]= FCEU_NAME" Save State (*.fc?)\0*.fc?\0";
char nameo[2048];
OPENFILENAME ofn;