Skip to content

Commit

Permalink
补充漏打包的lib文件夹
Browse files Browse the repository at this point in the history
添加debug输出
  • Loading branch information
MrZ626 committed Jun 24, 2024
1 parent dd889f8 commit f99b833
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
- name: Build core love package
uses: 26F-Studio/love-actions-core@v1
with:
build-list: ./assets/ ./Zenitha/ ./conf.lua ./main.lua ./version.lua
build-list: ./assets/ ./Zenitha/ ./libAndroid/ ./conf.lua ./main.lua ./version.lua
package-path: ${{ env.CORE_LOVE_PACKAGE_PATH }}
- name: Upload core love package
uses: actions/upload-artifact@v3
Expand Down
8 changes: 6 additions & 2 deletions assets/fmod20221/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ if SYSTEM=='Android' then
end
love.filesystem.write('lib/libfmod.so',love.filesystem.read('data','libAndroid/fmod/'..platform..'/libfmod.so'))
love.filesystem.write('lib/libfmodstudio.so',love.filesystem.read('data','libAndroid/fmod/'..platform..'/libfmodstudio.so'))
M.C=ffi.load(love.filesystem.getSaveDirectory()..'/lib/libfmod.so')
M.C2=ffi.load(love.filesystem.getSaveDirectory()..'/lib/libfmodstudio.so')
local suc
suc,M.C=pcall(ffi.load,love.filesystem.getSaveDirectory()..'/lib/libfmod.so')
suc,M.C2=pcall(ffi.load,love.filesystem.getSaveDirectory()..'/lib/libfmodstudio.so')
if not suc then
MSG.new('error',tostring(M.C) or "?")
end
else
-- search for fmod shared libraries in package.cpath
local fmodPath=package.searchpath('fmod',package.cpath)
Expand Down

0 comments on commit f99b833

Please sign in to comment.