1789
1796
if (sd->desc.cmd == SDT_BOOLX) {
1790
1797
snprintf(value, lengthof(value), (*(bool*)ptr == 1) ? "on" : "off");
1791
1798
} else if (sd->desc.cmd == SDT_STRING) {
1792
snprintf(value, sizeof(value), "%s", (const char *)ptr);
1799
snprintf(value, sizeof(value), "%s", (GetVarMemType(sd->save.conv) == SLE_VAR_STRQ) ? *(const char **)ptr : (const char *)ptr);
1794
1801
snprintf(value, lengthof(value), "%d", (uint32)ReadValue(ptr, sd->save.conv));