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:
@@ -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;\
|
||||
|
||||
Reference in New Issue
Block a user