Fix loading Lua state on Linux 32-bit client

This commit is contained in:
William Venner 2022-01-03 19:03:28 +00:00
parent e20834fbeb
commit 81369ac975
3 changed files with 4 additions and 3 deletions

2
Cargo.lock generated
View File

@ -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",

View File

@ -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"

View File

@ -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")
} }