[vkgen] Switch to bare dictionary for parse spec

This served as a nice test for the bare dictionary parsing (though
quakefs.c did, too), and even found a bug in vkgen's error handling.
This commit is contained in:
Bill Currie 2023-03-12 14:36:47 +09:00
parent 8f87407133
commit 3cdcc2c62c
2 changed files with 693 additions and 694 deletions

View file

@ -160,7 +160,7 @@ main(int argc, string *argv)
printf ("could not open property list file: %s\n", plist_filename);
return 1;
}
plist = [[PLItem fromFile: plist_file] retain];
plist = [[PLDictionary fromFile: plist_file] retain];
if (!plist) {
printf ("error parsing: %s\n", plist_filename);
return 1;
@ -168,6 +168,7 @@ main(int argc, string *argv)
Qclose (plist_file);
if ([plist class] != [PLDictionary class]) {
printf ("%s not a dictionary\n", plist_filename);
return 1;
}
search = [[plist getObjectForKey: "search"] retain];
handles = [[plist getObjectForKey: "handles"] retain];

File diff suppressed because it is too large Load diff