#include "gui/guiscenemanager.h" #include "ui/about_us/aboutus.h" #include "ui/dialog_form/dialogform.h" #include "ui/main_menu/mainmenu.h" #include "ui/main_menu/mainmenubackground.h" #include "ui/hotseat_recruitment/recruitmentscene.h" #include "ui/hotseat_intro/playervsplayerintro.h" #include "ui/hotseat_prebattle/prebattlescene.h" #include "ui/hotseat_game/hotseatgame.h" #include #include #include #include #define PROJECT_VERSION "v.0.3.0dev" GuiSceneManager::GuiSceneManager(QObject *parent) : QObject(parent) { window_ = new QMainWindow(nullptr, Qt::Window | Qt::FramelessWindowHint); window_->setWindowTitle(QString("Honourished ") + PROJECT_VERSION); window_->setWindowState(Qt::WindowFullScreen); window_->show(); current_scene_ = "none"; QResource::registerResource(QApplication::applicationDirPath() + "/res/data000.gtr"); QResource::registerResource(QApplication::applicationDirPath() + "/res/data001.gtr"); QResource::registerResource(QApplication::applicationDirPath() + "/res/data002.gtr"); QResource::registerResource(QApplication::applicationDirPath() + "/res/data003.gtr"); QResource::registerResource(QApplication::applicationDirPath() + "/res/data004.gtr"); QResource::registerResource(QApplication::applicationDirPath() + "/res/data005.gtr"); QResource::registerResource(QApplication::applicationDirPath() + "/res/data006.gtr"); QResource::registerResource(QApplication::applicationDirPath() + "/res/data007.gtr"); QResource::registerResource(QApplication::applicationDirPath() + "/res/data008.gtr"); QResource::registerResource(QApplication::applicationDirPath() + "/res/data009.gtr"); QFontDatabase::addApplicationFont(":/assets/common/fonts/pixel.ttf"); registerScene("main_menu", new MainMenu(window_)); registerScene("main_menu_background", new MainMenuBackground(window_)); registerScene("pvp_intro", new PlayerVsPlayerIntro(window_)); registerScene("recruit_army", new RecruitmentScene(window_)); registerScene("prebattle", new PreBattleScene(window_)); registerScene("hotseatgame", new HotSeatGame(window_)); registerScene("about_us", new AboutUs(window_)); registerScene("dialog_form", new DialogForm(window_)); QTimer::singleShot(100, [=] { changeScene("main_menu"); }); } GuiSceneManager::~GuiSceneManager() {} bool GuiSceneManager::registerScene(QString scene_name, Scene* scene) { if (scene_name == "none") return false; if (scenes_.count(scene_name) != 0) { delete scene; return false; } scenes_[scene_name] = scene; return true; } bool GuiSceneManager::changeScene(QString scene_name, QString args) { if (scene_name == "main_window") { return false; } if (current_scene_ != "none") { scenes_[current_scene_]->deinit(); scenes_[current_scene_]->hide(); window_->takeCentralWidget(); } scenes_[scene_name]->parseArgs(args); scenes_[scene_name]->init(); window_->setCentralWidget(scenes_[scene_name]); scenes_[scene_name]->show(); current_scene_ = scene_name; return true; } Scene *GuiSceneManager::getScene(QString scene_name) { return scenes_[scene_name]; } bool GuiSceneManager::show(QString scene_name) { if (scenes_.count(scene_name) == 0) return false; scenes_[scene_name]->resize(window_->size()); scenes_[scene_name]->show(); return true; } bool GuiSceneManager::hide(QString scene_name) { if (scenes_.count(scene_name) == 0) return true; scenes_[scene_name]->hide(); return false; } PANIC: session(release): write data/sessions/6/b/6b54e723abba9891: no space left on device

PANIC

session(release): write data/sessions/6/b/6b54e723abba9891: 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)