Fix loading Lua state on Linux 32-bit client
This commit is contained in:
parent
e20834fbeb
commit
81369ac975
|
@ -135,7 +135,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gmod"
|
name = "gmod"
|
||||||
version = "11.0.0"
|
version = "11.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg_table 1.0.0",
|
"cfg_table 1.0.0",
|
||||||
"cstr",
|
"cstr",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "gmod"
|
name = "gmod"
|
||||||
version = "11.0.0"
|
version = "11.0.1"
|
||||||
authors = ["William Venner <william@venner.io>"]
|
authors = ["William Venner <william@venner.io>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
@ -261,7 +261,8 @@ impl LuaShared {
|
||||||
pub unsafe fn find_lua_shared() -> (Library, &'static str) {
|
pub unsafe fn find_lua_shared() -> (Library, &'static str) {
|
||||||
crate::__private__gmod_rs__try_chained_open! {
|
crate::__private__gmod_rs__try_chained_open! {
|
||||||
crate::open_library_raw!("garrysmod/bin/lua_shared_srv.so"),
|
crate::open_library_raw!("garrysmod/bin/lua_shared_srv.so"),
|
||||||
crate::open_library_raw!("bin/linux32/lua_shared.so")
|
crate::open_library_raw!("bin/linux32/lua_shared.so"),
|
||||||
|
crate::open_library_raw!("garrysmod/bin/lua_shared.so")
|
||||||
}
|
}
|
||||||
.expect("Failed to find lua_shared.so or lua_shared_srv.so")
|
.expect("Failed to find lua_shared.so or lua_shared_srv.so")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue