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:
parent
d1d72e54b9
commit
7a25403912
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user