mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 19:35:32 +08:00
refs #917, fixed plugin ids in wizard
utility functions CSimulatorInfo -> plugin
This commit is contained in:
committed by
Mathew Sutcliffe
parent
0942d007d5
commit
0544ab0193
@@ -12,9 +12,10 @@
|
||||
#ifndef BLACKCORE_APPLICATION_SETTINGS_H
|
||||
#define BLACKCORE_APPLICATION_SETTINGS_H
|
||||
|
||||
#include "blackmisc/settingscache.h"
|
||||
#include "blackconfig/buildconfig.h"
|
||||
#include "blackmisc/settingscache.h"
|
||||
#include "blackmisc/input/actionhotkeylist.h"
|
||||
#include "blackmisc/simulation/simulatorplugininfo.h"
|
||||
#include <QStringList>
|
||||
|
||||
namespace BlackCore
|
||||
@@ -50,36 +51,9 @@ namespace BlackCore
|
||||
static const QStringList &defaultValue()
|
||||
{
|
||||
// All default simulators
|
||||
static const QStringList enabledSimulators(defaultValueImpl());
|
||||
static const QStringList enabledSimulators(BlackMisc::Simulation::CSimulatorPluginInfo::guessDefaultPlugins());
|
||||
return enabledSimulators;
|
||||
}
|
||||
|
||||
private:
|
||||
//! Determine default value
|
||||
static QStringList defaultValueImpl()
|
||||
{
|
||||
if (BlackConfig::CBuildConfig::isRunningOnWindows10())
|
||||
{
|
||||
// On WIN10 we have no direct play, so disable FS9 as per default
|
||||
return QStringList
|
||||
{
|
||||
QStringLiteral("org.swift-project.plugins.simulator.fsx"),
|
||||
QStringLiteral("org.swift-project.plugins.simulator.xplane")
|
||||
};
|
||||
}
|
||||
else if (BlackConfig::CBuildConfig::isRunningOnUnixPlatform())
|
||||
{
|
||||
// On UNIX we likely run XP
|
||||
return QStringList { QStringLiteral("org.swift-project.plugins.simulator.xplane") };
|
||||
}
|
||||
|
||||
return QStringList
|
||||
{
|
||||
QStringLiteral("org.swift-project.plugins.simulator.fs9"),
|
||||
QStringLiteral("org.swift-project.plugins.simulator.fsx"),
|
||||
QStringLiteral("org.swift-project.plugins.simulator.xplane")
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
//! Uploading of crash dumps is enabled or disabled
|
||||
|
||||
Reference in New Issue
Block a user