From 0d99d6349e0a36cce7b9583d0c34a0cddcbc8140 Mon Sep 17 00:00:00 2001 From: Sirius902 <3645979-Sirius902@users.noreply.gitlab.com> Date: Wed, 11 May 2022 12:44:12 -0700 Subject: [PATCH] Replace remaining occurances of CVar_GetVar with CVar_Get --- libultraship/libultraship/Cvar.h | 1 - libultraship/libultraship/GameOverlay.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libultraship/libultraship/Cvar.h b/libultraship/libultraship/Cvar.h index 4d75bb440..e16f4469f 100644 --- a/libultraship/libultraship/Cvar.h +++ b/libultraship/libultraship/Cvar.h @@ -43,7 +43,6 @@ void CVar_RegisterString(const char* name, const char* defaultValue); #include extern std::map, std::less<>> cvars; -CVar* CVar_GetVar(const char* name); void CVar_SetFloat(const char* name, float value); void CVar_SetString(const char* name, const char* value); #endif diff --git a/libultraship/libultraship/GameOverlay.cpp b/libultraship/libultraship/GameOverlay.cpp index f54bc7e1a..bf9ca9a71 100644 --- a/libultraship/libultraship/GameOverlay.cpp +++ b/libultraship/libultraship/GameOverlay.cpp @@ -128,7 +128,7 @@ void Ship::GameOverlay::Draw() { if (overlay.type == OverlayType::TEXT) { const char* text = ImStrdup(key.c_str()); - const CVar* var = CVar_GetVar(text); + const CVar* var = CVar_Get(text); switch (var->type) { case CVAR_TYPE_FLOAT: @@ -156,7 +156,7 @@ bool Ship::OverlayCommand(const std::vector& args) { return CMD_FAILED; } - if (CVar_GetVar(args[2].c_str()) != nullptr) { + if (CVar_Get(args[2].c_str()) != nullptr) { const char* key = args[2].c_str(); GameOverlay* overlay = SohImGui::overlay; if (args[1] == "add") {