change: Switch to offical OpenFX Support. Still can't compile.
This commit is contained in:
+10
-1
@@ -52,7 +52,7 @@ extern "C" {
|
||||
#ifdef USE_CRASHPAD
|
||||
#include "common/crashpadinterface.h"
|
||||
#endif // USE_CRASHPAD
|
||||
|
||||
#include "OlivePlugin.cpp"
|
||||
int decompress_project(const QString &project)
|
||||
{
|
||||
if (project.isEmpty()) {
|
||||
@@ -214,6 +214,11 @@ int main(int argc, char *argv[])
|
||||
QStringLiteral("project"),
|
||||
QCoreApplication::translate("main", "Project to open on startup"));
|
||||
|
||||
auto no_plugin = parser.AddOption(
|
||||
{ QStringLiteral("-no-plugin") },
|
||||
QCoreApplication::translate("main", "Don't load plugins")
|
||||
);
|
||||
|
||||
// Qt options re-implemented (add to this as necessary)
|
||||
//
|
||||
// Because we don't use QCommandLineParser, we must filter out Qt's arguments ourselves. Here,
|
||||
@@ -280,6 +285,10 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if (!no_plugin->IsSet()) {
|
||||
olive::plugin::loadPlugins("plugins");
|
||||
}
|
||||
|
||||
if (crash_option->IsSet()) {
|
||||
startup_params.set_crash_on_startup(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user