mirror of https://github.com/odrling/Aegisub
Merge branch 'vapoursynth' into feature
This commit is contained in:
commit
e2e3906d15
|
@ -187,10 +187,7 @@ def wrap_lwlibavsource(filename: str, cachedir: str | None = None, **kwargs: Any
|
||||||
if cachedir is None:
|
if cachedir is None:
|
||||||
cachedir = aegi_vscache
|
cachedir = aegi_vscache
|
||||||
|
|
||||||
try:
|
os.makedirs(cachedir, exist_ok=True)
|
||||||
os.mkdir(cachedir)
|
|
||||||
except FileExistsError:
|
|
||||||
pass
|
|
||||||
cachefile = os.path.join(cachedir, make_lwi_cache_filename(filename))
|
cachefile = os.path.join(cachedir, make_lwi_cache_filename(filename))
|
||||||
|
|
||||||
progress_set_message("Loading video file")
|
progress_set_message("Loading video file")
|
||||||
|
|
|
@ -43,7 +43,9 @@ int OpenScriptOrVideo(const VSAPI *api, const VSSCRIPTAPI *sapi, VSScript *scrip
|
||||||
throw VapourSynthError("Failed to create VSMap for script info");
|
throw VapourSynthError("Failed to create VSMap for script info");
|
||||||
|
|
||||||
SetStringVar(api, map, "filename", filename.string());
|
SetStringVar(api, map, "filename", filename.string());
|
||||||
SetStringVar(api, map, "__aegi_vscache", config::path->Decode("?local/vscache").string());
|
auto vscache = config::path->Decode("?local/vscache");
|
||||||
|
agi::fs::CreateDirectory(vscache);
|
||||||
|
SetStringVar(api, map, "__aegi_vscache", vscache.string());
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
SetStringVar(api, map, "__aegi_vsplugins", config::path->Decode("?data/vapoursynth").string());
|
SetStringVar(api, map, "__aegi_vsplugins", config::path->Decode("?data/vapoursynth").string());
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue