mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-04 16:17:39 +00:00
Fix applet invocation
This commit is contained in:
parent
be5be108c3
commit
36448191b7
@ -158,6 +158,15 @@ int magisk_main(int argc, char *argv[]) {
|
|||||||
write_int(fd, LATE_START);
|
write_int(fd, LATE_START);
|
||||||
return read_int(fd);
|
return read_int(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Applets
|
||||||
|
argc--;
|
||||||
|
argv++;
|
||||||
|
for (int i = 0; applet[i]; ++i) {
|
||||||
|
if (strcmp(basename(argv[0]), applet[i]) == 0)
|
||||||
|
return (*applet_main[i])(argc, argv);
|
||||||
|
}
|
||||||
|
|
||||||
usage();
|
usage();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user