mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-15 07:43:50 +00:00
1. Fixed compiler warning
2. Fixed bug where process.arch wasn't defined 3. Integrated PE_Parser on windows
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -957,15 +957,6 @@ void ILibDuktape_ScriptContainer_Process_Init(duk_context *ctx, char **argList)
|
|||||||
duk_put_prop_string(ctx, -2, ILibDuktape_ScriptContainer_Process_ArgArray); // [g][process]
|
duk_put_prop_string(ctx, -2, ILibDuktape_ScriptContainer_Process_ArgArray); // [g][process]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (duk_peval_string(ctx, "require('os').arch();") == 0) // [g][process][arch]
|
|
||||||
{
|
|
||||||
ILibDuktape_CreateReadonlyProperty(ctx, "arch"); // [g][process]
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{ // [g][process]
|
|
||||||
duk_pop(ctx);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef _POSIX
|
#ifdef _POSIX
|
||||||
duk_push_int(ctx, (duk_int_t)getpid());
|
duk_push_int(ctx, (duk_int_t)getpid());
|
||||||
ILibDuktape_CreateReadonlyProperty(ctx, "pid");
|
ILibDuktape_CreateReadonlyProperty(ctx, "pid");
|
||||||
|
|||||||
Reference in New Issue
Block a user