Linux build system: server-only target + portable warnings

- CMakeLists: allow Linux 64-bit, server-only includes, portable tests
- ProjectOptions: MSVC /W4 vs GCC -Wall, version.rc Windows-only
- Core/Dependencies: guard Windows-only libs, OpenSSL for launcher_support
- Apps: launcher/emote Windows-only, server Linux links OpenSSL/dl/pthread
- Fix launcher_support lambda return, cas_codec Oodle guards, steam dlerror crash
This commit is contained in:
Juan committed 2026-10-03 16:57:18 -03:00
1 parent eab493987c
commit 9ddbd0c7ce
8 files changed
+261 -175

No files matched your search

+5 -3
View File
@@ -163,10 +163,12 @@ bool SteamServer::start(const std::filesystem::path &folder, std::uint16_t port,
module_ = dlopen("libsteam_api.so", RTLD_NOW);
library = folder / "libsteam_api.so";
}
if (!module_)
if (!module_) {
const char *details = dlerror();
throw std::runtime_error("Cannot load " + library.string() +
". Put libsteam_api.so (Steamworks SDK) next to the server. " +
(dlerror() ? dlerror() : ""));
". Put libsteam_api.so (Steamworks SDK) next to the server." +
(details && details[0] ? std::string(" ") + details : ""));
}
setenv("SteamAppId", "3354750", 1);
setenv("SteamGameId", "3354750", 1);
#endif