chore: reformat

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu
2023-08-02 18:35:35 +02:00
parent ce2ca13815
commit 1d468ac35a
594 changed files with 16040 additions and 16536 deletions

View File

@ -15,13 +15,12 @@
#pragma once
#include <QString>
#include <QMap>
#include <QString>
#include "net/NetAction.h"
#include "net/NetJob.h"
struct AssetObject
{
struct AssetObject {
QString getRelPath();
QUrl getUrl();
QString getLocalPath();
@ -31,8 +30,7 @@ struct AssetObject
qint64 size;
};
struct AssetsIndex
{
struct AssetsIndex {
NetJob::Ptr getDownloadJob();
QString id;
@ -42,12 +40,11 @@ struct AssetsIndex
};
/// FIXME: this is absolutely horrendous. REDO!!!!
namespace AssetsUtils
{
bool loadAssetsIndexJson(const QString &id, const QString &file, AssetsIndex& index);
namespace AssetsUtils {
bool loadAssetsIndexJson(const QString& id, const QString& file, AssetsIndex& index);
QDir getAssetsDir(const QString &assetsId, const QString &resourcesFolder);
QDir getAssetsDir(const QString& assetsId, const QString& resourcesFolder);
/// Reconstruct a virtual assets folder for the given assets ID and return the folder
bool reconstructAssets(QString assetsId, QString resourcesFolder);
}
} // namespace AssetsUtils