Skip to content

Commit

Permalink
整理代码 框架跟进
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Apr 30, 2024
1 parent a191ed0 commit 4c8a23f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Zenitha
Submodule Zenitha updated 3 files
+1 −1 gcExtend.lua
+60 −44 init.lua
+6 −1 require.lua
10 changes: 5 additions & 5 deletions assets/fmod20221/init.lua
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -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)
Expand Down

0 comments on commit 4c8a23f

Please sign in to comment.