mirror of
https://github.com/Dingo-Shenanigans/ReSkate.git
synced 2026-10-28 03:27:07 +01:00
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:
1 parent
eab493987c
commit
9ddbd0c7ce
8 files changed
+261
-175
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user