mirror of
https://github.com/0TheSpy/Seaside.git
synced 2025-01-07 10:03:29 +08:00
Update Menu.hpp
This commit is contained in:
parent
8f08134625
commit
f1d49f2fd4
@ -1709,8 +1709,10 @@ long __stdcall hkEndScene(IDirect3DDevice9* pDevice)
|
|||||||
if (ImGui::Button("Apply##name", ImVec2(70, 22)))
|
if (ImGui::Button("Apply##name", ImVec2(70, 22)))
|
||||||
{
|
{
|
||||||
ConVar* nameConvar = iff.g_pCVar->FindVar("name");
|
ConVar* nameConvar = iff.g_pCVar->FindVar("name");
|
||||||
*(int*)((DWORD)&nameConvar->m_fnChangeCallbacks + 0xC) = 0;
|
*(int*)((DWORD)&nameConvar->m_fnChangeCallbacks.m_Size) = 0;
|
||||||
|
printfdbg("m_fnChangeCallbacks %x\n", (DWORD)&nameConvar->m_fnChangeCallbacks.m_Size);
|
||||||
nameConvar->SetValue(MakeControlChars(g_Options.playername.value->mystring));
|
nameConvar->SetValue(MakeControlChars(g_Options.playername.value->mystring));
|
||||||
|
SetName(MakeControlChars(g_Options.playername.value->mystring));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ImGui::Button("Apply##clan", ImVec2(70, 22)))
|
if (ImGui::Button("Apply##clan", ImVec2(70, 22)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user