Merge pull request #681 from Pistachioman/lilyext

Add default extension to lilypad's save/load config dialog - Prevents saving a file with no extension
This commit is contained in:
bositman 2015-07-28 15:56:52 +03:00
commit 2af021129f
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); wcscpy(file, config.lastSaveConfigFileName);
ofn.lpstrInitialDir = config.lastSaveConfigPath; ofn.lpstrInitialDir = config.lastSaveConfigPath;
ofn.Flags = OFN_DONTADDTORECENT | OFN_LONGNAMES | OFN_NOCHANGEDIR; ofn.Flags = OFN_DONTADDTORECENT | OFN_LONGNAMES | OFN_NOCHANGEDIR;
ofn.lpstrDefExt = L"lily";
if (LOWORD(wParam) == ID_LOAD) { if (LOWORD(wParam) == ID_LOAD) {
ofn.lpstrTitle = L"Load LilyPad Configuration"; ofn.lpstrTitle = L"Load LilyPad Configuration";
ofn.Flags |= OFN_FILEMUSTEXIST; ofn.Flags |= OFN_FILEMUSTEXIST;