Add default extension to lilypad's save/load config dialog

This commit is contained in:
Pistachioman 2015-07-27 20:30:50 +02:00
parent 000e11e270
commit c6c7d99fd2
1 changed files with 1 additions and 0 deletions

View File

@ -1862,6 +1862,7 @@ INT_PTR CALLBACK GeneralDialogProc(HWND hWnd, unsigned int msg, WPARAM wParam, L
wcscpy(file, config.lastSaveConfigFileName);
ofn.lpstrInitialDir = config.lastSaveConfigPath;
ofn.Flags = OFN_DONTADDTORECENT | OFN_LONGNAMES | OFN_NOCHANGEDIR;
ofn.lpstrDefExt = L"lily";
if (LOWORD(wParam) == ID_LOAD) {
ofn.lpstrTitle = L"Load LilyPad Configuration";
ofn.Flags |= OFN_FILEMUSTEXIST;