mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-01 10:56:57 +03:00
Implement basic game updater.
Resolves MMC-4: https://jira.forkk.net/browse/MMC-4
This commit is contained in:
parent
2e62f6e8d8
commit
5f781b3053
17 changed files with 599 additions and 98 deletions
|
|
@ -24,6 +24,7 @@ MinecraftVersion::MinecraftVersion(QString descriptor,
|
|||
InstVersion(descriptor, name, timestamp, parent), m_dlUrl(dlUrl), m_etag(etag)
|
||||
{
|
||||
m_linkedVersion = NULL;
|
||||
m_isNewLauncherVersion = false;
|
||||
}
|
||||
|
||||
MinecraftVersion::MinecraftVersion(const MinecraftVersion *linkedVersion) :
|
||||
|
|
@ -98,6 +99,16 @@ qint64 MinecraftVersion::timestamp() const
|
|||
return m_timestamp;
|
||||
}
|
||||
|
||||
bool MinecraftVersion::isForNewLauncher() const
|
||||
{
|
||||
return m_isNewLauncherVersion;
|
||||
}
|
||||
|
||||
void MinecraftVersion::setIsForNewLauncher(bool val)
|
||||
{
|
||||
m_isNewLauncherVersion = val;
|
||||
}
|
||||
|
||||
MinecraftVersion::VersionType MinecraftVersion::versionType() const
|
||||
{
|
||||
return m_type;
|
||||
|
|
@ -137,6 +148,7 @@ InstVersion *MinecraftVersion::copyVersion(InstVersionList *newParent) const
|
|||
MinecraftVersion *version = new MinecraftVersion(
|
||||
descriptor(), name(), timestamp(), downloadURL(), etag(), newParent);
|
||||
version->setVersionType(versionType());
|
||||
version->setIsForNewLauncher(isForNewLauncher());
|
||||
return version;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue