Skip to content

Commit

Permalink
vapoursynth: Ensure vscache directory is created
Browse files Browse the repository at this point in the history
Match the other video providers for consistency.
  • Loading branch information
arch1t3cht committed Feb 27, 2024
1 parent abff236 commit deb0f19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vapoursynth_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit deb0f19

Please sign in to comment.