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/client/gui/language.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/client/gui/language.cc')
| -rw-r--r-- | src/game/client/gui/language.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game/client/gui/language.cc b/src/game/client/gui/language.cc index 8a2d8d1..4ad1f68 100644 --- a/src/game/client/gui/language.cc +++ b/src/game/client/gui/language.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: language.cc +// Description: Translations API + #include "client/pch.hh" #include "client/gui/language.hh" @@ -41,7 +46,7 @@ void language::init(void) auto file = PHYSFS_openRead(std::string(MANIFEST_PATH).c_str()); if(file == nullptr) { - spdlog::critical("language: {}: {}", MANIFEST_PATH, physfs_error()); + spdlog::critical("language: {}: {}", MANIFEST_PATH, physfs::last_error()); std::terminate(); } @@ -114,7 +119,7 @@ void language::set(LanguageIterator new_language) auto file = PHYSFS_openRead(path.c_str()); if(file == nullptr) { - spdlog::warn("language: {}: {}", path, physfs_error()); + spdlog::warn("language: {}: {}", path, physfs::last_error()); send_language_event(new_language); return; } |
