an option to add hooks after video

This commit is contained in:
Zeno Rogue 2020-05-25 02:32:15 +02:00
parent 31fba0fb6e
commit 72b3f78185
1 changed files with 3 additions and 0 deletions

View File

@ -1341,6 +1341,8 @@ EX bool record_animation() {
}
#endif
EX purehookset hooks_after_video;
#if CAP_VIDEO
EX bool record_video(string fname IS(videofile), bool_reaction_t rec IS(record_animation)) {
@ -1368,6 +1370,7 @@ EX bool record_video(string fname IS(videofile), bool_reaction_t rec IS(record_a
rec();
close(tab[1]);
wait(nullptr);
callhooks(hooks_after_video);
return true;
}