update
This commit is contained in:
parent
140f645197
commit
ff9a2eb07d
|
@ -54,7 +54,7 @@ HEADERS += \
|
|||
QCodeEditor/QHighlightBlockRule.hpp \
|
||||
QCodeEditor/QHighlightRule.hpp \
|
||||
QCodeEditor/QLanguage.hpp \
|
||||
../../WingHexExplorer/wing-hex-explorer.sourcecode/WingHexExplorer/plugin/iwingplugin.h \
|
||||
../WingHexExplorer/WingHexExplorer/plugin/iwingplugin.h \
|
||||
scriptwindow.h \
|
||||
recentfilemanager.h \
|
||||
PythonQt/PythonQt.h \
|
||||
|
|
|
@ -19,20 +19,18 @@ ScriptManager::ScriptManager(QObject *parent) : QObject(parent) {
|
|||
if (!pdir.exists()) {
|
||||
return;
|
||||
}
|
||||
pdir.setFilter(QDir::Filter::Dirs);
|
||||
pdir.setFilter(QDir::Dirs | QDir::NoDotAndDotDot);
|
||||
auto fdirs = pdir.entryInfoList();
|
||||
for (auto folder : fdirs) {
|
||||
auto na = folder.fileName();
|
||||
if (na == "." || na == ".." || na == ".git")
|
||||
if (na == ".git")
|
||||
continue;
|
||||
QDir jdir(folder.filePath());
|
||||
QList<ScriptMeta> m;
|
||||
jdir.setFilter(QDir::Filter::Dirs);
|
||||
jdir.setFilter(QDir::Dirs | QDir::NoDotAndDotDot);
|
||||
auto paks = jdir.entryInfoList();
|
||||
for (auto f : paks) {
|
||||
auto na = f.fileName();
|
||||
if (na == "." || na == "..")
|
||||
continue;
|
||||
auto fn = f.absoluteFilePath();
|
||||
QDir dir(fn);
|
||||
auto j = fn + "/" + f.fileName() + ".json";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef GENERICPLUGIN_H
|
||||
#define GENERICPLUGIN_H
|
||||
|
||||
#include "../../WingHexExplorer/wing-hex-explorer.sourcecode/WingHexExplorer/plugin/iwingplugin.h"
|
||||
#include "../WingHexExplorer/WingHexExplorer/plugin/iwingplugin.h"
|
||||
#include "PythonQt/gui/PythonQtScriptingConsole.h"
|
||||
#include "plginterface.h"
|
||||
#include "scriptmanager.h"
|
||||
|
|
Loading…
Reference in New Issue