mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-24 21:42:53 -05:00
Fix linux build
This commit is contained in:
@@ -180,7 +180,12 @@ namespace smoke_api {
|
||||
|
||||
AppId_t get_app_id() {
|
||||
try {
|
||||
const auto app_id_str = kb::util::get_env_var("SteamAppId");
|
||||
const auto* const app_id_str = std::getenv("SteamAppId");
|
||||
if(app_id_str == nullptr) {
|
||||
LOG_WARN("No SteamAppId is set in current environment");
|
||||
return 0;
|
||||
}
|
||||
|
||||
static auto app_id = std::stoi(app_id_str);
|
||||
return app_id;
|
||||
} catch(const std::exception& e) {
|
||||
|
||||
Reference in New Issue
Block a user