Added local file initialization

This commit is contained in:
Digital Artifex
2025-09-23 06:24:15 -04:00
parent fee066b4da
commit 557e518c79
2 changed files with 100 additions and 6 deletions

View File

@@ -147,6 +147,7 @@ public:
QString imagesPath() const;
QString cubeMapsPath() const;
QString videosPath() const;
QString scenesPath() const;
protected:
void setState(State state);
@@ -163,6 +164,8 @@ Q_SIGNALS:
void metadataChanged();
private:
void initialize();
void copyDirectoryFiles(QString source, QString destination);
QString m_shaderPackPath;
QString m_shaderPackName;
const QString m_shaderPackInstallPath;
@@ -171,6 +174,7 @@ private:
const QString m_imagesPath;
const QString m_cubeMapsPath;
const QString m_videosPath;
const QString m_scenesPath;
ShaderPackMetadata *m_metadata = nullptr; // currently reported metadata
@@ -190,6 +194,7 @@ private:
Q_PROPERTY(QString imagesPath READ imagesPath CONSTANT)
Q_PROPERTY(QString cubeMapsPath READ cubeMapsPath CONSTANT)
Q_PROPERTY(QString videosPath READ videosPath CONSTANT)
Q_PROPERTY(QString scenesPath READ scenesPath CONSTANT)
};
Q_DECLARE_METATYPE(ShaderPackModel)