mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
scripting: rename backend names for concise naming
This commit is contained in:
parent
cb829879af
commit
6bb3e05d49
@ -1256,7 +1256,7 @@ static void add_functions(js_State *J, struct script_ctx *ctx)
|
||||
|
||||
// main export of this file, used by cplayer to load js scripts
|
||||
const struct mp_scripting mp_scripting_js = {
|
||||
.name = "javascript",
|
||||
.name = "js",
|
||||
.file_ext = "js",
|
||||
.load = s_load_javascript,
|
||||
};
|
||||
|
@ -1335,7 +1335,7 @@ static void add_functions(struct script_ctx *ctx)
|
||||
}
|
||||
|
||||
const struct mp_scripting mp_scripting_lua = {
|
||||
.name = "lua script",
|
||||
.name = "lua",
|
||||
.file_ext = "lua",
|
||||
.load = load_lua,
|
||||
};
|
||||
|
@ -396,11 +396,10 @@ error: ;
|
||||
}
|
||||
|
||||
const struct mp_scripting mp_scripting_cplugin = {
|
||||
.name = "cplugin",
|
||||
#if HAVE_WIN32
|
||||
.name = "DLL plugin",
|
||||
.file_ext = "dll",
|
||||
#else
|
||||
.name = "SO plugin",
|
||||
.file_ext = "so",
|
||||
#endif
|
||||
.load = load_cplugin,
|
||||
@ -458,7 +457,7 @@ static int load_run(struct mp_script_args *args)
|
||||
}
|
||||
|
||||
const struct mp_scripting mp_scripting_run = {
|
||||
.name = "spawned IPC process",
|
||||
.name = "ipc",
|
||||
.file_ext = "run",
|
||||
.no_thread = true,
|
||||
.load = load_run,
|
||||
|
Loading…
Reference in New Issue
Block a user