mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 10:29:59 +03:00
fix mod load with empty gameversions
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
(cherry picked from commit 29b3eb5cc6)
This commit is contained in:
parent
70ca7af205
commit
299cbf8009
3 changed files with 3 additions and 4 deletions
|
|
@ -112,6 +112,8 @@ void Flame::FileResolvingTask::netJobFinished()
|
|||
auto obj = Json::requireObject(file);
|
||||
auto version = FlameMod::loadIndexedPackVersion(obj);
|
||||
auto fileid = version.fileId.toInt();
|
||||
Q_ASSERT(fileid != 0);
|
||||
Q_ASSERT(m_manifest.files.contains(fileid));
|
||||
m_manifest.files[fileid].version = version;
|
||||
auto url = QUrl(version.downloadUrl, QUrl::TolerantMode);
|
||||
if (!url.isValid() && "sha1" == version.hash_type && !version.hash.isEmpty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue