StrataSource / Portal-2-Community-Edition

Task tracker for Portal 2: Community Edition
https://www.portal2communityedition.com
146 stars 3 forks source link

Feature: [Workshop] Allow addons to execute specified .cfg files on startup #1617

Open Equalizer5118 opened 7 months ago

Equalizer5118 commented 7 months ago

Which component should be improved?

Other

Describe your suggestion

Currently, autoexec.cfg is only executed from the mod path, so any autoexecs found in an addon are not automatically executed. I am proposing a parameter in addon.kv3 that defines a .cfg file to automatically execute when the game starts with that addon mounted. It can specify any .cfg file in the addon's folder on startup, not just those named autoexec.cfg. It could look like this: autoexec=<cfg_filename_here>