-
-
Save nilium/b1b9da0c387a08c77f39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int console_t::get_int(const string &name, int default_value) { | |
int result = default_value; | |
cvar_query.bind_text_static(PLACEHOLDER_NAME, name); | |
cvar_query.execute([&result](dbresult_t &q) { | |
result = q.column_int(COLUMN_VALUE); | |
}); | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment