summaryrefslogtreecommitdiffstats
path: root/src/game/shared/splash.cc
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-12-26 23:17:56 +0500
committeruntodesu <kirill@untode.su>2025-12-26 23:17:56 +0500
commit0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e (patch)
tree90ddefa28b40b6384dd9618bb7573704de2733a9 /src/game/shared/splash.cc
parent6bb4233d5b2a1688e63c947542e92ec5d5a857a6 (diff)
downloadvoxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.tar.bz2
voxelius-0f111cf51b00c4e884b7e53b4fd7ff6e38d8af5e.zip
Add include guards and header comments to sources
Diffstat (limited to 'src/game/shared/splash.cc')
-rw-r--r--src/game/shared/splash.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/shared/splash.cc b/src/game/shared/splash.cc
index 86ed0d0..86b71bc 100644
--- a/src/game/shared/splash.cc
+++ b/src/game/shared/splash.cc
@@ -1,3 +1,8 @@
+// SPDX-License-Identifier: BSD-2-Clause
+// Copyright (c) 2025 Kirill Dmitrievich
+// File: splash.cc
+// Description: Randomized text messages
+
#include "shared/pch.hh"
#include "shared/splash.hh"
@@ -39,7 +44,7 @@ static void splash_init_filename(std::string_view filename)
splash_random.seed(std::random_device()());
}
else {
- splash_lines.push_back(std::format("{}: {}", filename, physfs_error()));
+ splash_lines.push_back(std::format("{}: {}", filename, physfs::last_error()));
splash_random.seed(std::random_device()());
}
}