mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 13:06:40 +00:00
Merge branch 'omwscripts_in_launcher' into 'master'
Support adding Lua mods in subdirectories in the launcher See merge request OpenMW/openmw!2874
This commit is contained in:
commit
1a1f983930
2 changed files with 2 additions and 1 deletions
|
@ -40,7 +40,7 @@ namespace
|
||||||
{
|
{
|
||||||
void contentSubdirs(const QString& path, QStringList& dirs)
|
void contentSubdirs(const QString& path, QStringList& dirs)
|
||||||
{
|
{
|
||||||
QStringList fileFilter{ "*.esm", "*.esp", "*.omwaddon", "*.bsa" };
|
QStringList fileFilter{ "*.esm", "*.esp", "*.omwaddon", "*.bsa", "*.omwscripts" };
|
||||||
QStringList dirFilter{ "bookart", "icons", "meshes", "music", "sound", "textures" };
|
QStringList dirFilter{ "bookart", "icons", "meshes", "music", "sound", "textures" };
|
||||||
|
|
||||||
QDir currentDir(path);
|
QDir currentDir(path);
|
||||||
|
|
|
@ -461,6 +461,7 @@ void ContentSelectorModel::ContentModel::addFiles(const QString& path, bool newf
|
||||||
file->setDate(info.lastModified());
|
file->setDate(info.lastModified());
|
||||||
file->setFilePath(info.absoluteFilePath());
|
file->setFilePath(info.absoluteFilePath());
|
||||||
addFile(file);
|
addFile(file);
|
||||||
|
setNew(file->fileName(), newfiles);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue