diff options
| author | untodesu <kirill@untode.su> | 2025-09-11 14:13:39 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-09-11 14:13:39 +0500 |
| commit | 8784cbfebcb8a0220fb947a6070032e20b80fc2f (patch) | |
| tree | 2e03a2c013ed7b19a5dafaba1ddfb05c1878449a /game/server | |
| parent | f0cc06c7388acb32b86301965c5b2547e4e3b919 (diff) | |
| download | voxelius-8784cbfebcb8a0220fb947a6070032e20b80fc2f.tar.bz2 voxelius-8784cbfebcb8a0220fb947a6070032e20b80fc2f.zip | |
Another qfengine graft: resource management
DECOPYPASTA DECOPYPASTA DECOPYPASTA DECOPYPASTA
Diffstat (limited to 'game/server')
| -rw-r--r-- | game/server/main.cc | 9 |
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(); |
