mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-01 23:35:41 +00:00
implement GetOsName
This commit is contained in:
parent
bf4c2d120e
commit
e58a241b28
@ -208,6 +208,10 @@ impl UserData for Context {
|
|||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
});
|
});
|
||||||
|
|
||||||
|
methods.add_function("GetOSName", |lua, ()| {
|
||||||
|
Ok(std::env::consts::OS)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user