add default cvar getters

This commit is contained in:
marrub 2025-02-16 21:21:38 -07:00 committed by Rachael Alexanderson
commit dcbd66a528
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0
2 changed files with 25 additions and 0 deletions

View file

@ -696,6 +696,10 @@ struct CVar native
native int GetInt();
native double GetFloat();
native String GetString();
bool GetDefaultBool() { return GetDefaultInt(); }
native int GetDefaultInt();
native double GetDefaultFloat();
native String GetDefaultString();
void SetBool(bool b) { SetInt(b); }
native void SetInt(int v);
native void SetFloat(double v);