summaryrefslogtreecommitdiff
path: root/src/config/ConfigValue.cpp
diff options
context:
space:
mode:
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