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

Added BuildNumber back to os.name for windows

This commit is contained in:
Bryan Roe
2020-05-17 23:38:39 -07:00
parent 19fb0163d5
commit 0e8bc420a3

View File

@@ -2240,6 +2240,13 @@ void ILibDuktape_ScriptContainer_OS_Push(duk_context *ctx, void *chain)
{\
winstr = require('win-registry').QueryKey(require('win-registry').HKEY.LocalMachine, 'SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion', 'ProductName');\
}\
try\
{\
winstr += (' [' + require('win-registry').QueryKey(require('win-registry').HKEY.LocalMachine, 'SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion', 'CurrentBuild') + ']');\
}\
catch(ee)\
{\
}\
}\
ret = winstr;\
break;\