mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
NOISSUE Some happy little refactors
This commit is contained in:
@ -481,7 +481,7 @@ bool PackProfile::migratePreComponentConfig()
|
||||
}
|
||||
else if(!intendedVersion.isEmpty())
|
||||
{
|
||||
auto metaVersion = ENV.metadataIndex()->get(uid, intendedVersion);
|
||||
auto metaVersion = ENV->metadataIndex()->get(uid, intendedVersion);
|
||||
component = new Component(this, metaVersion);
|
||||
}
|
||||
else
|
||||
@ -546,7 +546,7 @@ bool PackProfile::migratePreComponentConfig()
|
||||
auto patchVersion = d->getOldConfigVersion(uid);
|
||||
if(!patchVersion.isEmpty() && !loadedComponents.contains(uid))
|
||||
{
|
||||
auto patch = new Component(this, ENV.metadataIndex()->get(uid, patchVersion));
|
||||
auto patch = new Component(this, ENV->metadataIndex()->get(uid, patchVersion));
|
||||
patch->setOrder(order);
|
||||
loadedComponents[uid] = patch;
|
||||
}
|
||||
|
Reference in New Issue
Block a user