mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
[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:
parent
3b1acf8a7b
commit
1efeac6d60
1 changed files with 2 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue