dninemfive / wn-mfw

WARNO mod framework.
MIT License
0 stars 0 forks source link

Dynamically load necessary NDF files #5

Closed dninemfive closed 1 week ago

dninemfive commented 1 month ago

Right now, all NDF files which are needed for the framework to run are listed as constants in mw2.constants.ndf_paths and loaded via the ALL constant in that file. This means that every time i touch a new file i need to update this in two places, which is somewhat error-prone.

Given that the ndf_path decorator necessarily lists these, they could be lazily loaded as needed when such methods are called. This would reduce error surface and make performance better as well.

dninemfive commented 1 week ago

Completed as of ed9e9ea.