summaryrefslogtreecommitdiff
path: root/src/config/ConfigValue.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-03-20 13:52:37 -0400
committerGitHub <noreply@github.com>2026-03-20 17:52:37 +0000
commit8726a7363eb9213235e6e23657668e0daac39a5b (patch)
tree42eeb40f6f81a9ccec1455f308e56173e9dcce4b /src/config/ConfigValue.cpp
parentb940b0d2c197841b0f648598ee782dbaf9e0a89b (diff)
config: cleanup the entire config infrastructure (#13785)
Massively refactors the config infrastructure, sorely needed and will be req'd for the lua stuff
Diffstat (limited to 'src/config/ConfigValue.cpp')
-rw-r--r--src/config/ConfigValue.cpp11
1 files changed, 4 insertions, 7 deletions
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