更新speakerlib的路径
This commit is contained in:
@@ -12,6 +12,7 @@ _G.Playprint = false -- 信息输出开关(true开,false关)
|
||||
_G.setVolume = 1 -- 音量控制(0-3)
|
||||
|
||||
local API_URL = "http://newgmapi.liulikeji.cn/api/ffmpeg"
|
||||
local mypath = "/"..fs.getDir(shell.getRunningProgram())
|
||||
|
||||
-- 扬声器配置
|
||||
local speakerlist = {
|
||||
@@ -27,7 +28,7 @@ local function printlog(...)
|
||||
end
|
||||
|
||||
local function loadSpeakerConfig()
|
||||
local speaker_groups = fs.open("speaker_groups.cfg","r")
|
||||
local speaker_groups = fs.open(mypath.."/speaker_groups.cfg","r")
|
||||
if speaker_groups then
|
||||
local content = speaker_groups.readAll()
|
||||
speaker_groups.close()
|
||||
|
||||
Reference in New Issue
Block a user