mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-25 21:40:09 +00:00
implement GetOsName
This commit is contained in:
1 parent
bf4c2d120e
commit
e58a241b28
1 file changed
+4
@@ -208,6 +208,10 @@ impl UserData for Context {
|
|||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
});
|
});
|
||||||
|
|
||||||
|
methods.add_function("GetOSName", |lua, ()| {
|
||||||
|
Ok(std::env::consts::OS)
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user