fix the failure in test by using LAUNCHER_TEST

Signed-off-by: wohaopa <2411829240@qq.com>
This commit is contained in:
初夏同学 2023-10-17 19:28:45 +08:00
parent 90599e8f73
commit b3a09fca1e
No known key found for this signature in database
GPG Key ID: 83899E736B2B9DD7

View File

@ -172,12 +172,15 @@ QList<NetAction::Ptr> Library::getDownloads(const RuntimeContext& runtimeContext
}
if (m_repositoryURL.isEmpty()) {
#ifndef LAUNCHER_TEST
QString librariesOverride = APPLICATION->settings()->get("MinecraftLibrariesURLOverride").toString();
if (librariesOverride.isEmpty()) {
return BuildConfig.LIBRARY_BASE + raw_storage;
} else {
if (!librariesOverride.isEmpty())
return librariesOverride + raw_storage;
}
else
#endif
return BuildConfig.LIBRARY_BASE + raw_storage;
}
if (m_repositoryURL.endsWith('/')) {