mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-20 02:54:05 +00:00
added hooks_cgi_string
This commit is contained in:
@@ -1014,6 +1014,8 @@ EX int last_texture_step;
|
|||||||
|
|
||||||
int ntimestamp;
|
int ntimestamp;
|
||||||
|
|
||||||
|
EX hookset<void(string&)> hooks_cgi_string;
|
||||||
|
|
||||||
EX string cgi_string() {
|
EX string cgi_string() {
|
||||||
string s;
|
string s;
|
||||||
auto V = [&] (string a, string b) { s += a; s += ": "; s += b; s += "; "; };
|
auto V = [&] (string a, string b) { s += a; s += ": "; s += b; s += "; "; };
|
||||||
@@ -1080,6 +1082,8 @@ EX string cgi_string() {
|
|||||||
|
|
||||||
V("LQ", its(vid.linequality));
|
V("LQ", its(vid.linequality));
|
||||||
|
|
||||||
|
callhooks(hooks_cgi_string, s);
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user