1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 07:43:50 +00:00

Added 'mips' and 'mipsel' to os.arch()

This commit is contained in:
Bryan Roe
2020-11-11 16:39:15 -08:00
parent 1ec352f96b
commit d5a2c078be

View File

@@ -1651,7 +1651,18 @@ duk_ret_t ILibDuktape_ScriptContainer_OS_arch(duk_context *ctx)
}
else
{
return(ILibDuktape_Error(ctx, "Could not determine architecture"));
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"));
}
}
}
}