[vkgen] Support specifying enum "searches" directly

Being able to parse enums that aren't part of a specified struct is
handy for cvars.
This commit is contained in:
Bill Currie 2021-11-29 13:02:30 +09:00
parent 3b1acf8a7b
commit 1efeac6d60

View file

@ -195,7 +195,8 @@ main(int argc, string *argv)
id obj = (id) Hash_Find (available_types, search_name);
obj = [obj resolveType];
//printf("obj: %d %s\n", obj, class_get_class_name([obj class]));
if (obj && [obj class] == [Struct class]) {
if (obj && ([obj class] == [Struct class]
|| [obj class] == [Enum class])) {
[obj addToQueue];
}
}