1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-10 15:59:53 +00:00

shot:: hooks_take

This commit is contained in:
Zeno Rogue 2019-12-23 20:52:41 +01:00
parent 94fd788316
commit c3332bfb52

View File

@ -319,6 +319,8 @@ void postprocess(string fname, SDL_Surface *sdark, SDL_Surface *sbright) {
}
#endif
EX purehookset hooks_take;
EX void take(string fname, const function<void()>& what IS(default_screenshot_content)) {
if(cheater) doOvergenerate();
@ -342,6 +344,7 @@ EX void take(string fname, const function<void()>& what IS(default_screenshot_co
vid.yres = shoty * multiplier;
calcparam();
models::configure();
callhooks(hooks_take);
if(make_svg) {
#if CAP_SVG