4 #define SKINVECTOR(name,def) vector SKIN##name = def
5 #define SKINFLOAT(name,def) float SKIN##name = def
6 //#define SKINSTRING(name,def) const string SKIN##name = def
7 #define SKINSTRING(name,def) string SKIN##name = def
9 #include "skin-customizables.inc"
16 #define SKINBEGIN void Skin_ApplySetting(string key, string _value) { switch(key) {
17 #define SKINVECTOR(name,def) case #name: SKIN##name = stov(_value); break
18 #define SKINFLOAT(name,def) case #name: SKIN##name = stof(_value); break
19 //#define SKINSTRING(name,def) case #name: break
20 #define SKINSTRING(name,def) case #name: SKIN##name = strzone(_value); break
21 // I know this leaks memory when skin is read multiple times. Screw it.
22 #define SKINEND case "": break; case "//": break; default: LOG_TRACE("Invalid key in skin file: ", key, "\n"); } }
23 #include "skin-customizables.inc"