diff options
| author | untodesu <kirill@untode.su> | 2025-12-26 23:17:56 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-12-26 23:17:56 +0500 |
| commit | 0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e (patch) | |
| tree | 90ddefa28b40b6384dd9618bb7573704de2733a9 /src/game/server/world/universe.cc | |
| parent | 6bb4233d5b2a1688e63c947542e92ec5d5a857a6 (diff) | |
| download | voxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.tar.bz2 voxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.zip | |
Add include guards and header comments to sources
Diffstat (limited to 'src/game/server/world/universe.cc')
| -rw-r--r-- | src/game/server/world/universe.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/game/server/world/universe.cc b/src/game/server/world/universe.cc index defefc6..0a8d956 100644 --- a/src/game/server/world/universe.cc +++ b/src/game/server/world/universe.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: universe.cc +// Description: Dimension handling + #include "server/pch.hh" #include "server/world/universe.hh" @@ -52,7 +57,7 @@ static void add_new_dimension(Dimension* dimension) auto dimension_dir = std::format("{}/{}", universe_name.get(), dimension->get_name()); if(!PHYSFS_mkdir(dimension_dir.c_str())) { - spdlog::critical("universe: {}: {}", dimension_dir, physfs_error()); + spdlog::critical("universe: {}: {}", dimension_dir, physfs::last_error()); std::terminate(); } @@ -61,7 +66,7 @@ static void add_new_dimension(Dimension* dimension) metadata->zvox_dir = std::format("{}/chunk", dimension_dir); if(!PHYSFS_mkdir(metadata->zvox_dir.c_str())) { - spdlog::critical("universe: {}: {}", metadata->zvox_dir, physfs_error()); + spdlog::critical("universe: {}: {}", metadata->zvox_dir, physfs::last_error()); std::terminate(); } @@ -109,7 +114,7 @@ void universe::init_late(void) const auto universe_dir = std::string(universe_name.get()); if(!PHYSFS_mkdir(universe_dir.c_str())) { - spdlog::critical("universe: {}: {}", universe_dir, physfs_error()); + spdlog::critical("universe: {}: {}", universe_dir, physfs::last_error()); std::terminate(); } |
