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 d1d72e54b9
commit 7a25403912
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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); auto max_input_length = src->get_arg<int>(7);
if (max_input_length == 15) 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); 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); 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")) if (auto pos = strstr((char*)original, "15"))
{ {
pos[0] = '6'; pos[0] = '4';
pos[1] = '4'; pos[1] = '1';
} }
return original; return original;
} }