"sv_name \"test\\\""
then that part of code will consume last \\\"
and break+--------------+ defs {%1, %2}
|%0: | uses {%1}
|%1 = 1 + 1 | in {%1, %4}
|%2 = 0 + %1 | out {%1, %2, %4}
|goto %3 |
+--------------+
+--------------+ defs {%4}
|%3: | uses {%1, %2, %4}
|%4 = %1 + %2 | in {%1, %2, %4}
|ret %4 | out β
+--------------+
but it gives a weird in variables for block %0
block, is it my skill issues or it's the correct answer?
UPD. uses were calculated wrongly (edited) Tilemap layers:
| tiles - 3d numpy array with the dimension [height, width, n]. The last dimension varies on the layer kind:
| 'Tiles', 'Game', 'Front': [id, flags]
| 'Tele': [number, id]
| 'Speedup': [force, map_speed, id, angle]
| In 'Speedup', elements are i16 instead of u8, since angle can be anywhere between 0 and 360
| 'Switch': [number, id, flags, delay]
| 'Tune': [number, id]
"sv_name \"test\\\""
is correct but ParseArgs breaks it"sv_name \"test\\\""
is correct but ParseArgs breaks it "background-color-inactive"
: specifies the background color of inactive touch buttons.
"background-color-active"
: specifies the background color of active touch buttons.
test\
but parseargs thinks closing slash isnt escaped and will consume the last \"
which means it never finds closing quote and says argument is invalidtest\
but parseargs thinks closing slash isnt escaped and will consume the last \"
which means it never finds closing quote and says argument is invalid "sv_name \"test\\\""
though? The sv_name
shouldn't be inside quotes. sv_name "\"test\\\""
works as expected and sets the server name to "test\"
"sv_name \"test\\\""
though? The sv_name
shouldn't be inside quotes. sv_name "\"test\\\""
works as expected and sets the server name to "test\"
ParseArgs
shouldn't be enclosed in quotesDDNet-Server.exe "sv_name \"name\\\\\""
--> server: server name is 'name\'
, the outer quotes are strippedDDNet-Server.exe "sv_name \"name\\\\\""
--> server: server name is 'name\'
, the outer quotes are stripped /home/runner/work/ddnet/ddnet/src/game/editor/auto_map.h:79:2: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers]
79 | const int CAutoMapper::CheckIndexFlag(int Flag, const char *pFlag, bool CheckNone);
| ^~~~~
int CAutoMapper::CheckIndexFlag(int Flag, const char *pFlag, bool CheckNone) const;
this