diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2023-07-09 17:36:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-09 17:36:03 +0200 |
| commit | ef94aee28464039672b277243a0181ae93550d6c (patch) | |
| tree | 0575a68af5f154e9d6d0738edbaefb16a11d6f5c /src/loot.h | |
| parent | 7d6cb8528d20e36a4cee822263865ee2f7f32481 (diff) | |
| parent | 3de050e9c03e553f7ae3f780f6bd080a30ae123e (diff) | |
Merge pull request #1839 from Holt59/ci/initial-gh-action-for-build
Clang-Format + Github Workflow
Diffstat (limited to 'src/loot.h')
| -rw-r--r-- | src/loot.h | 24 |
1 files changed, 11 insertions, 13 deletions
@@ -2,10 +2,10 @@ #define MODORGANIZER_LOOT_H #include "envmodule.h" +#include <QWidget> #include <log.h> #include <lootcli/lootcli.h> #include <windows.h> -#include <QWidget> Q_DECLARE_METATYPE(lootcli::Progress); Q_DECLARE_METATYPE(MOBase::log::Levels); @@ -34,10 +34,10 @@ public: struct Dirty { - qint64 crc=0; - qint64 itm=0; - qint64 deletedReferences=0; - qint64 deletedNavmesh=0; + qint64 crc = 0; + qint64 itm = 0; + qint64 deletedReferences = 0; + qint64 deletedNavmesh = 0; QString cleaningUtility; QString info; @@ -53,8 +53,8 @@ public: std::vector<Message> messages; std::vector<Dirty> dirty, clean; std::vector<QString> missingMasters; - bool loadsArchive = false; - bool isMaster = false; + bool loadsArchive = false; + bool isMaster = false; bool isLightMaster = false; QString toMarkdown() const; @@ -84,7 +84,6 @@ public: QString errorsMarkdown() const; }; - Loot(OrganizerCore& core); ~Loot(); @@ -114,13 +113,13 @@ private: std::vector<QString> m_errors, m_warnings; Report m_report; - bool spawnLootcli( - QWidget* parent, bool didUpdateMasterList, env::HandlePtr stdoutHandle); + bool spawnLootcli(QWidget* parent, bool didUpdateMasterList, + env::HandlePtr stdoutHandle); void lootThread(); bool waitForCompletion(); - void processStdout(const std::string &lootOut); + void processStdout(const std::string& lootOut); void processMessage(const lootcli::Message& m); Report createReport() const; @@ -138,7 +137,6 @@ private: std::vector<QString> reportStringArray(const QJsonArray& array) const; }; - bool runLoot(QWidget* parent, OrganizerCore& core, bool didUpdateMasterList); -#endif // MODORGANIZER_LOOT_H +#endif // MODORGANIZER_LOOT_H |
