summaryrefslogtreecommitdiffstats
path: root/game/server
diff options
context:
space:
mode:
Diffstat (limited to 'game/server')
-rw-r--r--game/server/main.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/game/server/main.cc b/game/server/main.cc
index 872307b..e25a457 100644
--- a/game/server/main.cc
+++ b/game/server/main.cc
@@ -46,6 +46,9 @@ int main(int argc, char** argv)
std::signal(SIGINT, &on_termination_signal);
std::signal(SIGTERM, &on_termination_signal);
+ BinFile::register_resource();
+ Image::register_resource();
+
server_game::init();
threading::init();
@@ -80,16 +83,14 @@ int main(int argc, char** argv)
std::this_thread::sleep_for(std::chrono::microseconds(globals::tickrate_dt));
- resource::soft_cleanup<BinFile>();
- resource::soft_cleanup<Image>();
+ resource::soft_cleanup();
threading::update();
}
server_game::shutdown();
- resource::hard_cleanup<BinFile>();
- resource::hard_cleanup<Image>();
+ resource::hard_cleanup();
threading::shutdown();