From 8784cbfebcb8a0220fb947a6070032e20b80fc2f Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 14:13:39 +0500 Subject: Another qfengine graft: resource management DECOPYPASTA DECOPYPASTA DECOPYPASTA DECOPYPASTA --- game/server/main.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'game/server') 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(); - resource::soft_cleanup(); + resource::soft_cleanup(); threading::update(); } server_game::shutdown(); - resource::hard_cleanup(); - resource::hard_cleanup(); + resource::hard_cleanup(); threading::shutdown(); -- cgit