mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-12 22:33:55 +00:00
updated os.arch() for Apple Silicon
This commit is contained in:
@@ -1677,6 +1677,10 @@ duk_ret_t ILibDuktape_ScriptContainer_OS_arch(duk_context *ctx)
|
||||
duk_push_string(ctx, "x64");
|
||||
#endif
|
||||
}
|
||||
if (strcmp(u.machine, "arm64") == 0)
|
||||
{
|
||||
duk_push_string(ctx, "arm64");
|
||||
}
|
||||
else
|
||||
{
|
||||
int mlen = strlen(u.machine); // size is not specified, but is gauranteed to be NULL terminated
|
||||
|
||||
Reference in New Issue
Block a user