aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/lua.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-07-24 21:33:23 +0200
committercbdev <cb@cbcdn.com>2019-07-24 21:33:23 +0200
commitc75721e77ecada3c88f4b493c1e3036c151bfe88 (patch)
treec59f930b486240dd3fdde5dca2cac3b6a760317f /backends/lua.c
parent1f0de6d91c14217ae3893da0e4b6089b799ed026 (diff)
downloadmidimonster-c75721e77ecada3c88f4b493c1e3036c151bfe88.tar.gz
midimonster-c75721e77ecada3c88f4b493c1e3036c151bfe88.tar.bz2
midimonster-c75721e77ecada3c88f4b493c1e3036c151bfe88.zip
Clarify backend documentation
Diffstat (limited to 'backends/lua.c')
-rw-r--r--backends/lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/lua.c b/backends/lua.c
index 4d946cd..61e4e08 100644
--- a/backends/lua.c
+++ b/backends/lua.c
@@ -277,7 +277,7 @@ static int lua_configure_instance(instance* inst, char* option, char* value){
lua_instance_data* data = (lua_instance_data*) inst->impl;
//load a lua file into the interpreter
- if(!strcmp(option, "script")){
+ if(!strcmp(option, "script") || !strcmp(option, "source")){
if(luaL_dofile(data->interpreter, value)){
fprintf(stderr, "Failed to load lua source file %s for instance %s: %s\n", value, inst->name, lua_tostring(data->interpreter, -1));
return 1;
@@ -285,7 +285,7 @@ static int lua_configure_instance(instance* inst, char* option, char* value){
return 0;
}
- fprintf(stderr, "Unknown configuration parameter %s for lua backend\n", option);
+ fprintf(stderr, "Unknown configuration parameter %s for lua instance %s\n", option, inst->name);
return 1;
}