mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-04-16 23:36:54 -04:00
superseeds #4242 also this adds support for min_format and max_format and the major.minor versioning. Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
27 lines
596 B
C++
27 lines
596 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. */
|
|
QMap<std::pair<int, int>, std::pair<Version, Version>> mappings() const override;
|
|
};
|