lotromanager.h 772 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #ifndef LOTROMANAGER_H
  2. #define LOTROMANAGER_H
  3. #include <QObject>
  4. #include <LotroDat.h>
  5. class LotroManager : public QObject
  6. {
  7. Q_OBJECT
  8. private:
  9. explicit LotroManager(QObject *parent = nullptr);
  10. public:
  11. static LotroManager& getInstance() {
  12. static LotroManager instance;
  13. return instance;
  14. }
  15. void startGame();
  16. bool openDatFile(int id);
  17. void closeDatFile(int id);
  18. void applyPatch(QString name);
  19. void applyGlobal();
  20. bool isDatReady();
  21. int checkDatFile();
  22. void applyMicroPatch();
  23. void applyLoadscreens();
  24. private:
  25. void processFile();
  26. void installMicroPatch();
  27. void prepareMicroPatch();
  28. private:
  29. LOTRO_DAT::LOCALE dat_locale_;
  30. signals:
  31. public slots:
  32. };
  33. #endif // LOTROMANAGER_H