1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 07:43:50 +00:00

Added commitHash to process.versions.meshAgent

This commit is contained in:
Bryan Roe
2019-05-09 14:58:42 -07:00
parent bb9bbca2a8
commit 2015b668f2

View File

@@ -990,6 +990,10 @@ void ILibDuktape_ScriptContainer_Process_Init(duk_context *ctx, char **argList)
duk_push_string(ctx, SOURCE_COMMIT_DATE); // [func][date]
if (duk_pcall(ctx, 1) == 0)
{
if (SOURCE_COMMIT_HASH != NULL)
{
duk_push_string(ctx, SOURCE_COMMIT_HASH); duk_put_prop_string(ctx, -2, "commitHash");
}
duk_put_prop_string(ctx, -2, "meshAgent");
}
else