NOISSUE Split MultiMC app object into MultiMC and Env
This commit is contained in:
parent
e508728246
commit
6f3aa65bd6
44 changed files with 343 additions and 325 deletions
|
@ -3,7 +3,8 @@
|
|||
#include "logic/net/ByteArrayDownload.h"
|
||||
#include "logic/net/CacheDownload.h"
|
||||
#include "logic/net/URLConstants.h"
|
||||
#include "MultiMC.h"
|
||||
#include "logic/Env.h"
|
||||
#include "logger/QsLog.h"
|
||||
|
||||
TranslationDownloader::TranslationDownloader()
|
||||
{
|
||||
|
@ -27,7 +28,7 @@ void TranslationDownloader::indexRecieved()
|
|||
{
|
||||
if (!line.isEmpty())
|
||||
{
|
||||
MetaEntryPtr entry = MMC->metacache()->resolveEntry("translations", "mmc_" + line);
|
||||
MetaEntryPtr entry = ENV.metacache()->resolveEntry("translations", "mmc_" + line);
|
||||
entry->stale = true;
|
||||
CacheDownloadPtr dl = CacheDownload::make(
|
||||
QUrl(URLConstants::TRANSLATIONS_BASE_URL + line),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue