mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-16 00:03:45 +00:00
Added 'mips' and 'mipsel' to os.arch()
This commit is contained in:
@@ -1650,11 +1650,22 @@ duk_ret_t ILibDuktape_ScriptContainer_OS_arch(duk_context *ctx)
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (strcmp(u.machine, "mips") == 0)
|
||||
{
|
||||
duk_push_string(ctx, "mips");
|
||||
}
|
||||
else if (strcmp(u.machine, "mipsel") == 0)
|
||||
{
|
||||
duk_push_string(ctx, "mipsel");
|
||||
}
|
||||
else
|
||||
{
|
||||
return(ILibDuktape_Error(ctx, "Could not determine architecture"));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return(1);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user