fix the failure in test by using LAUNCHER_TEST
Signed-off-by: wohaopa <2411829240@qq.com>
This commit is contained in:
parent
90599e8f73
commit
b3a09fca1e
@ -172,12 +172,15 @@ QList<NetAction::Ptr> Library::getDownloads(const RuntimeContext& runtimeContext
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (m_repositoryURL.isEmpty()) {
|
if (m_repositoryURL.isEmpty()) {
|
||||||
|
#ifndef LAUNCHER_TEST
|
||||||
QString librariesOverride = APPLICATION->settings()->get("MinecraftLibrariesURLOverride").toString();
|
QString librariesOverride = APPLICATION->settings()->get("MinecraftLibrariesURLOverride").toString();
|
||||||
if (librariesOverride.isEmpty()) {
|
if (!librariesOverride.isEmpty())
|
||||||
return BuildConfig.LIBRARY_BASE + raw_storage;
|
|
||||||
} else {
|
|
||||||
return librariesOverride + raw_storage;
|
return librariesOverride + raw_storage;
|
||||||
}
|
else
|
||||||
|
#endif
|
||||||
|
return BuildConfig.LIBRARY_BASE + raw_storage;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_repositoryURL.endsWith('/')) {
|
if (m_repositoryURL.endsWith('/')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user