scripting: rename backend names for concise naming

This commit is contained in:
Kacper Michajłow 2023-10-22 21:00:13 +02:00 committed by Dudemanguy
parent cb829879af
commit 6bb3e05d49
3 changed files with 4 additions and 5 deletions

View File

@ -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,
};

View File

@ -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,
};

View File

@ -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,