mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-29 13:07:40 +00:00
new utility functions: (de)serialize, as_cstring
This commit is contained in:
@@ -992,9 +992,7 @@ int read_geom_args() {
|
||||
else if(argis("-fwrite")) {
|
||||
shstream hs;
|
||||
hwrite_fpattern(hs, currfp);
|
||||
string s;
|
||||
for(char c: hs.s) s += format("\\x%02x", (unsigned char) c);
|
||||
println(hlog, "current fieldpattern: ", s);
|
||||
println(hlog, "current fieldpattern: ", as_cstring(hs.s));
|
||||
}
|
||||
else if(argis("-csp")) {
|
||||
cheat();
|
||||
|
||||
Reference in New Issue
Block a user