mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-03 14:26:09 +00:00
LuaAPI: Implement GetOSName
This commit is contained in:
@@ -32,7 +32,14 @@ static std::string LuaToString(const sol::object& Value) {
|
||||
}
|
||||
}
|
||||
|
||||
void LuaAPI::MP::GetOSName() {
|
||||
std::string LuaAPI::MP::GetOSName() {
|
||||
#if WIN32
|
||||
return "Windows";
|
||||
#elif __linux
|
||||
return "Linux";
|
||||
#else
|
||||
return "Other";
|
||||
#endif
|
||||
}
|
||||
|
||||
std::tuple<int, int, int> LuaAPI::MP::GetServerVersion() {
|
||||
|
||||
Reference in New Issue
Block a user