mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Support underscore (_) in VFormat arg name
This is needed for the limits check in the translator menu. This commit is part of rewritten history of the localization branch. The original (unsquashed) commit history can be found here: https://github.com/Dav999-v/VVVVVV/tree/localization-orig
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
f8fd51fc95
commit
72f030fd8e
@@ -245,7 +245,8 @@ void vformat_cb_valist(
|
||||
trim_whitespace(&arg_name, &arg_name_len);
|
||||
trim_whitespace(&arg_type, &arg_type_len);
|
||||
|
||||
match = (arg_name_len == name_len && SDL_memcmp(arg_name, name, name_len) == 0);
|
||||
match = (arg_name_len == name_len && SDL_memcmp(arg_name, name, name_len) == 0)
|
||||
|| (arg_name_len == 1 && arg_name[0] == '_');
|
||||
|
||||
if (arg_type_len == 3 && SDL_memcmp(arg_type, "int", 3) == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user