mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-22 19:23:31 +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');\
|
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;\
|
ret = winstr;\
|
||||||
break;\
|
break;\
|
||||||
|
|||||||
Reference in New Issue
Block a user