NOISSUE more compiler warning removal
This commit is contained in:
parent
d432d8ecfc
commit
c329bc73c0
@ -12,13 +12,10 @@ QString LegacyFTBInstance::id() const
|
||||
return "FTB/" + BaseInstance::id();
|
||||
}
|
||||
|
||||
void LegacyFTBInstance::copy(const QDir &newDir)
|
||||
void LegacyFTBInstance::copy(SettingsObjectPtr newSettings, const QDir& newDir)
|
||||
{
|
||||
// set the target instance to be plain Legacy
|
||||
INISettingsObject settings_obj(newDir.absoluteFilePath("instance.cfg"));
|
||||
settings_obj.registerSetting("InstanceType", "Legacy");
|
||||
QString inst_type = settings_obj.get("InstanceType").toString();
|
||||
settings_obj.set("InstanceType", "Legacy");
|
||||
newSettings->set("InstanceType", "Legacy");
|
||||
}
|
||||
|
||||
QString LegacyFTBInstance::typeName() const
|
||||
|
@ -8,7 +8,7 @@ class LegacyFTBInstance : public LegacyInstance
|
||||
public:
|
||||
explicit LegacyFTBInstance(SettingsObjectPtr globalSettings, SettingsObjectPtr settings, const QString &rootDir);
|
||||
QString id() const override;
|
||||
void copy(const QDir &newDir) override;
|
||||
void copy(SettingsObjectPtr newSettings, const QDir &newDir) override;
|
||||
QString typeName() const override;
|
||||
bool canExport() const override
|
||||
{
|
||||
|
@ -107,7 +107,6 @@ SET(MULTIMC_SOURCES
|
||||
|
||||
# page provider for instances
|
||||
InstancePageProvider.h
|
||||
InstancePageProvider.cpp
|
||||
|
||||
# Common java checking UI
|
||||
JavaCommon.h
|
||||
|
Loading…
Reference in New Issue
Block a user