gameres.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #ifndef GAMERES_H
  2. #define GAMERES_H
  3. #include <QObject>
  4. #include <QThread>
  5. #include <LotroDat.h>
  6. using namespace LOTRO_DAT;
  7. class GameRes : public QObject {
  8. Q_OBJECT
  9. // Singleton realisation of class
  10. private:
  11. GameRes();
  12. public:
  13. static GameRes* getInstance() {
  14. static GameRes instance;
  15. return &instance;
  16. }
  17. // Basic public functions
  18. public slots:
  19. int openDatFile(int id); // Opens .dat file by its id (0-local_English.dat)
  20. int closeDatFile(int id); // Closes .dat file by its id
  21. void applyPatch(QString name); // Applies patch by its name (sounds/texts/images/videos/textures/loadscreens)
  22. void setGameLocale(QString locale); // Sets locale by its name (Original/RU)
  23. int startGame(); // Starts detatched game application process
  24. void installMicroPatch(); // Installs latest micro-patch
  25. void applyAll(); // Installs all patches (applyGlobal)
  26. bool isBusy() {return false;} // !!!!TO BE DONE Returns true if operations with game res are working now
  27. int checkDatFile(); // Checks and returns information if dat file is clear/updated
  28. QStringList getLotroPath(); // Returns path to LotRO files
  29. void saveAllDatFiles(); // Saves and closes all .dat files
  30. std::string getDatPath(int id);
  31. signals:
  32. // Signals for gui updating - describe process of patching.
  33. void startedPatching(QString patchname);
  34. void updatedPatchPercent(int percent);
  35. void finishedPatching(QString patchname, QString result);
  36. private:
  37. int dateToTimestamp(QString customDateString, QString format);
  38. void processFile();
  39. void applyLoadscreens();
  40. bool isDatReady(); // Checks if file is ready to write data
  41. private slots:
  42. void applyMicroPatch(QString filename);
  43. private:
  44. QThread *thread_;
  45. bool busy_;
  46. Database db_;
  47. DatFile datfiles_[5];
  48. LOCALE locale_;
  49. };
  50. #endif // GAMERES_H
PANIC: session(release): write data/sessions/4/4/44e75360c21578d4: no space left on device

PANIC

session(release): write data/sessions/4/4/44e75360c21578d4: no space left on device
github.com/go-macaron/session@v0.0.0-20190805070824-1a3cdc6f5659/session.go:199 (0x8b2934)
gopkg.in/macaron.v1@v1.3.9/context.go:79 (0x83d0a0)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/context.go:112 (0x84fdb5)
gopkg.in/macaron.v1@v1.3.9/recovery.go:161 (0x84fda8)
gopkg.in/macaron.v1@v1.3.9/logger.go:40 (0x840c73)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/router.go:187 (0x850fc6)
gopkg.in/macaron.v1@v1.3.9/router.go:303 (0x8493e5)
gopkg.in/macaron.v1@v1.3.9/macaron.go:220 (0x841fca)
net/http/server.go:2836 (0x7a79b2)
net/http/server.go:1924 (0x7a341b)
runtime/asm_amd64.s:1373 (0x46f9f0)