+ else if ((iso = vtoy_json_get_string_ex(pNode->pstChild, "parent")) != NULL)
+ {
+ if (ventoy_is_dir_exist("%s%s", isodisk, iso))
+ {
+ grub_printf("parent: %s [OK]\n", iso);
+ ventoy_plugin_check_fullpath(pNode->pstChild, isodisk, "template", &pathnum);
+
+ if (JSON_SUCCESS == vtoy_json_get_int(pNode->pstChild, "autosel", &autosel))
+ {
+ if (autosel >= 0 && autosel <= pathnum)
+ {
+ grub_printf("autosel: %d [OK]\n", autosel);
+ }
+ else
+ {
+ grub_printf("autosel: %d [FAIL]\n", autosel);
+ }
+ }
+ }
+ else
+ {
+ grub_printf("parent: %s [FAIL]\n", iso);
+ }
+ }