diff --git a/Zenitha b/Zenitha index 30f200e2..52392bc9 160000 --- a/Zenitha +++ b/Zenitha @@ -1 +1 @@ -Subproject commit 30f200e22c8b1c7150e66e3d29b47fbb6986295a +Subproject commit 52392bc921118d1ed0b573cff21dccfece74030d diff --git a/assets/fmod20221/init.lua b/assets/fmod20221/init.lua index 26d24747..34b11854 100644 --- a/assets/fmod20221/init.lua +++ b/assets/fmod20221/init.lua @@ -1,5 +1,5 @@ local ffi=require("ffi") -local path=(...):gsub(".init$", "").."." +local path=(...):gsub(".init$","").."." local r=require; local function require(m) return r(path..m) end require("cdef") @@ -8,12 +8,12 @@ require("cdef") local M=require("master") -- search for fmod shared libraries in package.cpath -local fmodPath=package.searchpath("fmod", package.cpath) -local fmodstudioPath=package.searchpath("fmodstudio", package.cpath) -assert(fmodPath and fmodstudioPath, "FMOD shared libraries not found!") +local fmodPath=package.searchpath("fmod",package.cpath) +local fmodstudioPath=package.searchpath("fmodstudio",package.cpath) +assert(fmodPath and fmodstudioPath,"FMOD shared libraries not found!") -- pretend to load libfmod through Lua (it's going to fail but not raise any errors) so that its location is known when loading libfmodstudio through ffi --- package.loadlib(paths.fmod, "") +-- package.loadlib(fmodPath,"") M.C=ffi.load(fmodPath) M.C2=ffi.load(fmodstudioPath)