Open Anskrevy opened 1 year ago
I'm getting a feel for the api with the simple example but my attempts at loading scripts have not worked. I've tried the following
check_error(mpv_set_option_string(ctx, "config-dir", "/home/anon/.config/mpv")); check_error(mpv_set_option_string(ctx, "load-scripts", "yes"));
but to no avail. Will I really need to pass each script from the directory manually like so?
for (int i = 0; i < argc; ++i) check_error(mpv_set_option_string(ctx, "script", argv[i]));
(assuming **argv is an array of script files)
**argv
I'm getting a feel for the api with the simple example but my attempts at loading scripts have not worked. I've tried the following
but to no avail. Will I really need to pass each script from the directory manually like so?
(assuming
**argv
is an array of script files)