From 0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e Mon Sep 17 00:00:00 2001 From: untodesu Date: Fri, 26 Dec 2025 23:17:56 +0500 Subject: Add include guards and header comments to sources --- src/game/server/world/universe.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/game/server/world/universe.cc') 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(); } -- cgit