Rename ewext dll, because there is one guy who has an old version of a dll being loaded for some reason.

This commit is contained in:
IQuant 2024-10-11 16:27:10 +03:00
parent 8543a0a3e9
commit cc43dd1dfc
4 changed files with 4 additions and 4 deletions

View file

@ -24,11 +24,11 @@ build_luajit:
# `rustup target add i686-pc-windows-gnu` first
build_ext:
cd ewext && cargo build --release --target=i686-pc-windows-gnu
cp ewext/target/i686-pc-windows-gnu/release/ewext.dll quant.ew/ewext.dll
cp ewext/target/i686-pc-windows-gnu/release/ewext.dll quant.ew/ewext0.dll
build_ext_debug:
cd ewext && cargo build --target=i686-pc-windows-gnu
cp ewext/target/i686-pc-windows-gnu/debug/ewext.dll quant.ew/ewext.dll
cp ewext/target/i686-pc-windows-gnu/debug/ewext.dll quant.ew/ewext0.dll
##

View file

@ -65,7 +65,7 @@ unsafe extern "C" fn encode_area(lua: *mut lua_State) -> c_int {
///
/// Only gets called by lua when loading a module.
#[no_mangle]
pub unsafe extern "C" fn luaopen_ewext(lua: *mut lua_State) -> c_int {
pub unsafe extern "C" fn luaopen_ewext0(lua: *mut lua_State) -> c_int {
println!("Initializing ewext");
unsafe {
LUA.lua_createtable(lua, 0, 0);

BIN
quant.ew/ewext0.dll Executable file

Binary file not shown.

View file

@ -14,7 +14,7 @@ np.EnableGameSimulatePausing(false)
np.InstallDamageDetailsPatch()
np.SilenceLogs("Warning - streaming didn\'t find any chunks it could stream away...\n")
ewext = require("ewext")
ewext = require("ewext0")
-- Make some stuff global, as it's way too annoying to import each time.
ctx = dofile_once("mods/quant.ew/files/core/ctx.lua")