yifanlu / taiHEN

CFW framework for PS Vita
MIT License
302 stars 46 forks source link

Pass in plugin options in config.txt #73

Open yifanlu opened 6 years ago

yifanlu commented 6 years ago

It might be worth adding optional arguments to plugins by passing any string after the plugin path to the module_start function.

CelesteBlue-dev commented 6 years ago

I think that it's not really needed because each plugin could make a mypluginconfig.txt file if needed. Doesn't that improvement risk to break compatibility ? Regards

yifanlu commented 6 years ago

It won't break compatibility because if you don't pass in any option, nothing different will happen and if you pass in an option that the plugin doesn't know about, it won't handle it. The idea is that it's messy if every plugin has its own config file if they only need like 1 integer or string as configuration.

coderobe commented 6 years ago

i have started work on this, currently adding an additional config token to the lexer for this.

https://github.com/coderobe/taihen-parser