Parametrize script extension, default to 'tscript'

This commit is contained in:
Lukas Aldershaab 2020-12-12 16:54:16 +01:00
parent b8b62292bd
commit 099dd4f1f3
542 changed files with 774 additions and 783 deletions

View file

@ -67,7 +67,7 @@ GuiFileTreeCtrl::GuiFileTreeCtrl()
mSupportMouseDragging = false;
mMultipleSelections = false;
mFileFilter = "*.cs *.gui *.ed.cs";
mFileFilter = "*." TORQUE_SCRIPT_EXTENSION " *.gui *.ed." TORQUE_SCRIPT_EXTENSION;
_initFilters();
}
@ -111,7 +111,7 @@ void GuiFileTreeCtrl::updateTree()
if( !mRootPath.isEmpty() )
rootPath = String::ToString( "%s/%s", rootPath.c_str(), mRootPath.c_str() );
// get the files in the main.cs dir
// get the files in the main.tscript dir
Vector<StringTableEntry> pathVec;
Platform::dumpDirectories( rootPath, pathVec, 0, true);
_dumpFiles( rootPath, pathVec, 0);