WeiDUorg / weidu

WeiDU is a program used to develop, distribute and install modifications for games based on the Infinity Engine.
http://www.weidu.org
GNU General Public License v2.0
90 stars 20 forks source link

--list-requirements #73

Open FredrikLindgren opened 8 years ago

FredrikLindgren commented 8 years ago

http://forums.pocketplane.net/index.php/topic,29454.0.html

Parse and print a component's predicates. This will probably require a fair amount of selectiveness. GAME_IS and other straightforward predicates should be no problem, but many others might be more cryptic.

ALIENQuake commented 8 years ago

I was thinking only about GAME_IS/ENGINE_IS so you don't need to care about all those "REQUIRE_FILE" cases. New mods should never use REQUIRE_FILE and if, I will ask mod author to fix it when BWS Auto-Parser fails to get component-game/engine list.

FredrikLindgren commented 7 years ago

Note to self: the way to do this would likely be by processing the records (tp_file->module_list->mod_flags) and analysing the TP tokens generated by the parser.