1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-21 10:43:36 +00:00

1. Removed uneccessary printf

2. Added support for hex values for CAched db entries
3. Added --copy-msh support in agent installer
4. Added --no-embedded support
This commit is contained in:
Bryan Roe
2020-08-01 02:38:38 -07:00
parent 8ff0db9c3e
commit 43e09dd41e
5 changed files with 32 additions and 4 deletions

View File

@@ -142,6 +142,13 @@ void ILibSimpleDataStore_CachedEx(ILibSimpleDataStore dataStore, char* key, int
value = value + 1;
valueLen -= 2;
}
if (valueLen > 2 && strncmp(value, "0x", 2) == 0 && valueLen < 1024)
{
char *vtmp = ILibMemory_AllocateA((valueLen - 2) / 2);
util_hexToBuf(value + 2, valueLen - 2, vtmp);
value = vtmp;
valueLen = (int)ILibMemory_AllocateA_Size(value);
}
}
}
ILibSimpleDataStore_Root *root = (ILibSimpleDataStore_Root*)dataStore;