mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 10:29:59 +03:00
NOISSUE sanitize loading and downloading of metadata files
This commit is contained in:
parent
0060b50625
commit
e46aba9da5
20 changed files with 164 additions and 510 deletions
|
|
@ -16,9 +16,7 @@
|
|||
#include "Index.h"
|
||||
|
||||
#include "VersionList.h"
|
||||
#include "tasks/LocalLoadTask.h"
|
||||
#include "tasks/RemoteLoadTask.h"
|
||||
#include "format/Format.h"
|
||||
#include "JsonFormat.h"
|
||||
|
||||
namespace Meta
|
||||
{
|
||||
|
|
@ -78,15 +76,6 @@ QVariant Index::headerData(int section, Qt::Orientation orientation, int role) c
|
|||
}
|
||||
}
|
||||
|
||||
std::unique_ptr<Task> Index::remoteUpdateTask()
|
||||
{
|
||||
return std::unique_ptr<RemoteLoadTask>(new RemoteLoadTask(this));
|
||||
}
|
||||
std::unique_ptr<Task> Index::localUpdateTask()
|
||||
{
|
||||
return std::unique_ptr<LocalLoadTask>(new LocalLoadTask(this));
|
||||
}
|
||||
|
||||
bool Index::hasUid(const QString &uid) const
|
||||
{
|
||||
return m_uids.contains(uid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue