Make forge work.
Using classifiers FTW.
This commit is contained in:
parent
8a56ab6780
commit
c767707c95
20 changed files with 253 additions and 130 deletions
|
@ -2,6 +2,8 @@
|
|||
#include "InstanceVersion.h"
|
||||
#include "VersionBuildError.h"
|
||||
#include "VersionBuilder.h"
|
||||
#include "MultiMC.h"
|
||||
#include "logic/settings/SettingsObject.h"
|
||||
|
||||
bool MinecraftVersion::usesLegacyLauncher()
|
||||
{
|
||||
|
@ -141,3 +143,15 @@ QString MinecraftVersion::getPatchFilename()
|
|||
{
|
||||
return QString();
|
||||
}
|
||||
|
||||
bool MinecraftVersion::needsUpdate()
|
||||
{
|
||||
auto settings = MMC->settings();
|
||||
bool result = hasUpdate() && settings->get("AutoUpdateMinecraftVersions").toBool();
|
||||
return result;
|
||||
}
|
||||
|
||||
bool MinecraftVersion::hasUpdate()
|
||||
{
|
||||
return m_versionSource == Remote || (m_versionSource == Local && upstreamUpdate);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue