From 8726a7363eb9213235e6e23657668e0daac39a5b Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Fri, 20 Mar 2026 13:52:37 -0400 Subject: config: cleanup the entire config infrastructure (#13785) Massively refactors the config infrastructure, sorely needed and will be req'd for the lua stuff --- src/config/ConfigValue.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/config/ConfigValue.cpp') diff --git a/src/config/ConfigValue.cpp b/src/config/ConfigValue.cpp index 9f6cc319..169bf29c 100644 --- a/src/config/ConfigValue.cpp +++ b/src/config/ConfigValue.cpp @@ -1,15 +1,12 @@ #include "ConfigValue.hpp" #include "ConfigManager.hpp" -#include "../macros.hpp" void local__configValuePopulate(void* const** p, const std::string& val) { - const auto PVHYPRLANG = g_pConfigManager->getHyprlangConfigValuePtr(val); - - *p = PVHYPRLANG->getDataStaticPtr(); + const auto BIGP = Config::mgr()->getConfigValue(val); + *p = BIGP.dataptr; } std::type_index local__configValueTypeIdx(const std::string& val) { - const auto PVHYPRLANG = g_pConfigManager->getHyprlangConfigValuePtr(val); - const auto ANY = PVHYPRLANG->getValue(); - return std::type_index(ANY.type()); + const auto BIGP = Config::mgr()->getConfigValue(val); + return std::type_index(*BIGP.type); } \ No newline at end of file -- cgit v1.2.3