Updated the max characters from 64 characters to 41, which seems to be the maximum the Socialclub API actually saves and returns. (#3014)

This commit is contained in:
gir489 2024-05-01 04:54:28 -04:00 committed by GitHub
parent 53e6530d66
commit eac117299b
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ namespace big
auto max_input_length = src->get_arg<int>(7);
if (max_input_length == 15)
max_input_length = 64;
max_input_length = 41;
MISC::DISPLAY_ONSCREEN_KEYBOARD(input_type, window_title, unk1, input_default, unk2, unk3, unk4, max_input_length);
}

View File

@ -17,8 +17,8 @@ namespace big
auto original = g_hooking->get_original<hooks::get_label_text>()(g_pointers->m_gta.m_ctext_file_ptr, label);
if (auto pos = strstr((char*)original, "15"))
{
pos[0] = '6';
pos[1] = '4';
pos[0] = '4';
pos[1] = '1';
}
return original;
}