From 4c8a23f69d81700c5dfaadd720c8eff75d8dd863 Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Wed, 1 May 2024 03:41:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81=20?= =?UTF-8?q?=E6=A1=86=E6=9E=B6=E8=B7=9F=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zenitha | 2 +- assets/fmod20221/init.lua | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) 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)