1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-20 11:54:48 +00:00

added hooks_cgi_string

This commit is contained in:
Zeno Rogue 2021-03-21 11:33:25 +01:00
parent 820c640212
commit 3c1e0ebb38

View File

@ -1014,6 +1014,8 @@ EX int last_texture_step;
int ntimestamp;
EX hookset<void(string&)> hooks_cgi_string;
EX string cgi_string() {
string s;
auto V = [&] (string a, string b) { s += a; s += ": "; s += b; s += "; "; };
@ -1079,6 +1081,8 @@ EX string cgi_string() {
if(WDIM == 3) V("HTW", fts(vid.height_width));
V("LQ", its(vid.linequality));
callhooks(hooks_cgi_string, s);
return s;
}