mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-16 06:11:15 +00:00
[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:
parent
8f87407133
commit
3cdcc2c62c
2 changed files with 693 additions and 694 deletions
|
@ -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
Loading…
Reference in a new issue