vapoursynth: Ensure vscache directory is created

Match the other video providers for consistency.
This commit is contained in:
arch1t3cht 2024-02-27 20:39:41 +01:00
parent abff2365d3
commit deb0f19b1b
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,9 @@ int OpenScriptOrVideo(const VSAPI *api, const VSSCRIPTAPI *sapi, VSScript *scrip
throw VapourSynthError("Failed to create VSMap for script info");
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
SetStringVar(api, map, "__aegi_vsplugins", config::path->Decode("?data/vapoursynth").string());
#else