mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-29 22:23:11 +00:00
an option to add hooks after video
This commit is contained in:
parent
31fba0fb6e
commit
72b3f78185
@ -1341,6 +1341,8 @@ EX bool record_animation() {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
EX purehookset hooks_after_video;
|
||||||
|
|
||||||
#if CAP_VIDEO
|
#if CAP_VIDEO
|
||||||
EX bool record_video(string fname IS(videofile), bool_reaction_t rec IS(record_animation)) {
|
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();
|
rec();
|
||||||
close(tab[1]);
|
close(tab[1]);
|
||||||
wait(nullptr);
|
wait(nullptr);
|
||||||
|
callhooks(hooks_after_video);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user