From eac117299b4b05a083b28392e7b88e83988cc625 Mon Sep 17 00:00:00 2001 From: gir489 <100792176+gir489returns@users.noreply.github.com> Date: Wed, 1 May 2024 04:54:28 -0400 Subject: [PATCH] Updated the max characters from 64 characters to 41, which seems to be the maximum the Socialclub API actually saves and returns. (#3014) --- src/native_hooks/am_pi_menu.hpp | 2 +- src/services/custom_text/custom_text_callbacks.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/native_hooks/am_pi_menu.hpp b/src/native_hooks/am_pi_menu.hpp index 68e9dd38..86f58ef0 100644 --- a/src/native_hooks/am_pi_menu.hpp +++ b/src/native_hooks/am_pi_menu.hpp @@ -17,7 +17,7 @@ namespace big auto max_input_length = src->get_arg(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); } diff --git a/src/services/custom_text/custom_text_callbacks.cpp b/src/services/custom_text/custom_text_callbacks.cpp index b883a4a9..22f0761f 100644 --- a/src/services/custom_text/custom_text_callbacks.cpp +++ b/src/services/custom_text/custom_text_callbacks.cpp @@ -17,8 +17,8 @@ namespace big auto original = g_hooking->get_original()(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; }