forked from minetest-mods/MoreMesecons
Print a warning if the speech dispatcher isn't installed
This commit is contained in:
parent
795146a83e
commit
6ba4266de1
@ -21,11 +21,17 @@ if use_speech_dispatcher then
|
|||||||
execute = ie.os.execute
|
execute = ie.os.execute
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if use_speech_dispatcher then
|
||||||
|
if popen("if hash spd-say 2>/dev/null; then printf yes; fi"):read("*all") ~= "yes" then
|
||||||
|
minetest.log("warning", "[moremesecons_sayer] use_speech_dispatcher = true, but it seems the speech dispatcher isn't installed on your system")
|
||||||
|
use_speech_dispatcher = false
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local sayer_activate
|
local sayer_activate
|
||||||
if use_speech_dispatcher
|
if use_speech_dispatcher then
|
||||||
and popen("if hash spd-say 2>/dev/null; then printf yes; fi"):read("*all") == "yes" then
|
|
||||||
minetest.log("info", "[moremesecons_sayer] using speech dispatcher")
|
minetest.log("info", "[moremesecons_sayer] using speech dispatcher")
|
||||||
local tab = {
|
local tab = {
|
||||||
"spd-say",
|
"spd-say",
|
||||||
|
Loading…
Reference in New Issue
Block a user