mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
shot:: hooks_take
This commit is contained in:
parent
94fd788316
commit
c3332bfb52
@ -319,6 +319,8 @@ void postprocess(string fname, SDL_Surface *sdark, SDL_Surface *sbright) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
EX purehookset hooks_take;
|
||||||
|
|
||||||
EX void take(string fname, const function<void()>& what IS(default_screenshot_content)) {
|
EX void take(string fname, const function<void()>& what IS(default_screenshot_content)) {
|
||||||
|
|
||||||
if(cheater) doOvergenerate();
|
if(cheater) doOvergenerate();
|
||||||
@ -342,6 +344,7 @@ EX void take(string fname, const function<void()>& what IS(default_screenshot_co
|
|||||||
vid.yres = shoty * multiplier;
|
vid.yres = shoty * multiplier;
|
||||||
calcparam();
|
calcparam();
|
||||||
models::configure();
|
models::configure();
|
||||||
|
callhooks(hooks_take);
|
||||||
|
|
||||||
if(make_svg) {
|
if(make_svg) {
|
||||||
#if CAP_SVG
|
#if CAP_SVG
|
||||||
|
Loading…
Reference in New Issue
Block a user