We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 261733c commit 128c66fCopy full SHA for 128c66f
plugin_files/scripting/includes/swiftly/configuration.h
@@ -72,12 +72,19 @@ class Configuration
72
Configuration() {}
73
74
template <typename T>
75
- T Fetch(const char *key)
+ T Fetch(const char *key, ...)
76
{
77
void *configurationFetch = FetchFunctionPtr(nullptr, "scripting_Configuration_Fetch");
78
if (configurationFetch)
79
80
- const char *value = reinterpret_cast<Configuration_Fetch>(configurationFetch)(key);
+ va_list ap;
81
+ char buffer[2048];
82
+
83
+ va_start(ap, key);
84
+ UTIL_FormatArgs(buffer, sizeof(buffer), key, ap);
85
+ va_end(ap);
86
87
+ const char *value = reinterpret_cast<Configuration_Fetch>(configurationFetch)(buffer);
88
89
try
90
0 commit comments