Replacing file filter for windows that was mistakenly removed.

meow-7.2.2
Ima Mechanique 2011-12-25 23:09:32 +00:00
parent 04d5ba4ab9
commit 032a5e4572
1 changed files with 8 additions and 0 deletions

View File

@ -502,6 +502,14 @@ BOOL LLFilePicker::getSaveFile(ESaveFilter filter, const std::string& filename)
L"Compressed Images (*.j2c)\0*.j2c\0" \
L"\0";
break;
case FFSAVE_SCRIPT:
if (filename.empty())
{
wcsncpy( mFilesW,L"untitled.lsl", FILENAME_BUFFER_SIZE);
}
mOFN.lpstrDefExt = L"txt";
mOFN.lpstrFilter = L"LSL Files (*.lsl)\0*.lsl\0" L"\0";
break;
default:
return FALSE;
}