PrismLauncher/launcher/minecraft/mod/ResourcePack.h
Trial97 7ea15c31a1
chore: fix some codeql warnings
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
2025-06-05 09:45:25 +03:00

28 lines
649 B
C++

#pragma once
#include "Resource.h"
#include "minecraft/mod/DataPack.h"
#include <QImage>
#include <QMutex>
#include <QPixmap>
#include <QPixmapCache>
class Version;
/* TODO:
*
* Store localized descriptions
* */
class ResourcePack : public DataPack {
Q_OBJECT
public:
ResourcePack(QObject* parent = nullptr) : DataPack(parent) {}
ResourcePack(QFileInfo file_info) : DataPack(file_info) {}
/** Gets, respectively, the lower and upper versions supported by the set pack format. */
[[nodiscard]] std::pair<Version, Version> compatibleVersions() const override;
QString directory() override { return "/assets"; }
};