SolvedC++ Duplicating Cvars

Posts 1–4 of 4 · Page 1 of 1
C++ Duplicating Cvars
yeah, I acquired all the headers needed to do the shit, now i need to know how you duplicate a cvar. i doubt i'm going to get any useful help but it's worth a shot.
cvars are useless, dont touch them
ConVar *cv = new ConVar(...)
cv->m_pszName = toreplace->m_pszName
// stuff you want to do
toreplace->m_pszName = "newname"
/* or */
cvar->UnregisterConvar(toreplace)
cvar->RegisterConvar(cv)

or something i don't remember
what
why do you need to duplicate a cvar
why not just use the one thats already there?
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us