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/whitelist.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/game/server/whitelist.cc') diff --git a/src/game/server/whitelist.cc b/src/game/server/whitelist.cc index 555e5f3..2370c67 100644 --- a/src/game/server/whitelist.cc +++ b/src/game/server/whitelist.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: whitelist.cc +// Description: Player allow-list + #include "server/pch.hh" #include "server/whitelist.hh" @@ -48,7 +53,7 @@ void whitelist::init_late(void) PHYSFS_File* file = PHYSFS_openRead(whitelist::filename.c_str()); if(file == nullptr) { - spdlog::warn("whitelist: {}: {}", whitelist::filename.get(), physfs_error()); + spdlog::warn("whitelist: {}: {}", whitelist::filename.get(), physfs::last_error()); whitelist::enabled.set_value(false); return; } -- cgit