1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-25 20:53:15 +00:00

1. Changed Array.includes polyfill to be nonenumerable, fixing potential problems when using for loops

2. Added uninstall helper
3. Fixed macOS bug on 'load' function
This commit is contained in:
Bryan Roe
2020-02-25 23:32:21 -08:00
parent 7c77677b3e
commit 6f5f065eb5
5 changed files with 68 additions and 23 deletions

View File

@@ -953,7 +953,7 @@ int wmain(int argc, char* wargv[])
WideCharToMultiByte(CP_UTF8, 0, (LPCWCH)wargv[argvi], -1, argv[argvi], argvsz, NULL, NULL);
}
if (argc > 1 && (strcasecmp(argv[1], "-finstall") == 0))
if (argc > 1 && (strcasecmp(argv[1], "-finstall") == 0 || strcasecmp(argv[1], "-funinstall") == 0))
{
argv[argc] = argv[1];
argv[1] = (char*)ILibMemory_SmartAllocate(4);
@@ -961,7 +961,6 @@ int wmain(int argc, char* wargv[])
argc += 1;
}
/*
#ifndef NOMESHCMD
// Check if this is a Mesh command operation