-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.cpp
35 lines (27 loc) · 903 Bytes
/
config.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "include/config.h"
extern "C" {
void config_setFloat(String key, float value) {
return call<void>("config_setFloat", key, value);
}
void config_setInt(String key, int value) {
return call<void>("config_setInt", key, value);
}
void config_setBool(String key, unsigned char value) {
return call<void>("config_setBool", key, value);
}
int config_getType(String key) {
return call<int>("config_getType", key);
}
float config_getFloat(String key) {
return call<float>("config_getFloat", key);
}
int config_getInt(String key) {
return call<int>("config_getInt", key);
}
unsigned char config_getBool(String key) {
return call<unsigned char>("config_getBool", key);
}
unsigned char config_isBanned(String ip) {
return call<unsigned char>("config_isBanned", ip);
}
}