mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-28 02:50:34 +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
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user