DatPatcher.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // Created by kikab on 04.06.2018.
  3. //
  4. #ifndef LOTRO_DAT_LIBRARY_DATPATCHER_H
  5. #define LOTRO_DAT_LIBRARY_DATPATCHER_H
  6. #include "yaml-cpp/yaml.h"
  7. #include "../DatOperationResult.h"
  8. extern "C++"
  9. {
  10. namespace LOTRO_DAT {
  11. class DatFile;
  12. class SubfileData;
  13. class SubFile;
  14. class Database;
  15. class BinaryData;
  16. /*!
  17. * \brief Модуль экспорта файлов
  18. * \author Gi1dor
  19. * \date 30.06.2018
  20. * Класс для изменения файлов в dat контейнере. Позволяет обновлять файлы, сохраняя их оригинальные версии
  21. *
  22. * \warning Объекты этого класса не должны создаваться отдельно! Созданием и управлением ими занимается класс DatFile
  23. */
  24. class DatPatcher {
  25. public:
  26. DatPatcher() = delete;
  27. DatPatcher(const DatPatcher &other) = delete;
  28. DatPatcher& operator=(const DatPatcher &other) = delete;
  29. ~DatPatcher() = default;
  30. explicit DatPatcher(DatFile *datFilePtr);
  31. DatOperationResult<> PatchFile(const SubfileData &data, bool single_file = true);
  32. DatOperationResult<int> PatchAllDatabase(Database *db);
  33. private:
  34. DatOperationResult<> ApplyFilePatch(std::shared_ptr<SubFile> file, BinaryData &data);
  35. private:
  36. DatFile *dat;
  37. };
  38. }
  39. }
  40. #endif //LOTRO_DAT_LIBRARY_DATFILEPATCHER_H
PANIC: session(release): write data/sessions/3/4/340b9769b3d87eba: no space left on device

PANIC

session(release): write data/sessions/3/4/340b9769b3d87eba: 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)