NOISSUE rename MinecraftProfile to ComponentList
It is realistically a list of components. The fact that it also holds the final launch parameters is a design bug.
This commit is contained in:
parent
87edaa7dcd
commit
fede712a26
21 changed files with 120 additions and 120 deletions
|
@ -1,7 +1,7 @@
|
|||
#include "Env.h"
|
||||
#include "AssetUpdateTask.h"
|
||||
#include "minecraft/MinecraftInstance.h"
|
||||
#include "minecraft/MinecraftProfile.h"
|
||||
#include "minecraft/ComponentList.h"
|
||||
#include "net/ChecksumValidator.h"
|
||||
#include "minecraft/AssetsUtils.h"
|
||||
|
||||
|
@ -12,7 +12,7 @@ AssetUpdateTask::AssetUpdateTask(MinecraftInstance * inst)
|
|||
void AssetUpdateTask::executeTask()
|
||||
{
|
||||
setStatus(tr("Updating assets index..."));
|
||||
auto profile = m_inst->getMinecraftProfile();
|
||||
auto profile = m_inst->getComponentList();
|
||||
auto assets = profile->getMinecraftAssets();
|
||||
QUrl indexUrl = assets->url;
|
||||
QString localPath = assets->id + ".json";
|
||||
|
@ -48,7 +48,7 @@ void AssetUpdateTask::assetIndexFinished()
|
|||
AssetsIndex index;
|
||||
qDebug() << m_inst->name() << ": Finished asset index download";
|
||||
|
||||
auto profile = m_inst->getMinecraftProfile();
|
||||
auto profile = m_inst->getComponentList();
|
||||
auto assets = profile->getMinecraftAssets();
|
||||
|
||||
QString asset_fname = "assets/indexes/" + assets->id + ".json";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue