Skip to content

Commit

Permalink
scripting: rename backend names for concise naming
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 authored and Dudemanguy committed Oct 27, 2023
1 parent cb82987 commit 6bb3e05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion player/javascript.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
2 changes: 1 addition & 1 deletion player/lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
5 changes: 2 additions & 3 deletions player/scripting.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6bb3e05

Please sign in to comment.