jlaumon / AssetCooker

Asset Cooker is a build system aimed at game assets, for custom engines. It leverages Windows' USN journals to robustly track which files change, and only cook what needs to be cooked.
Mozilla Public License 2.0
263 stars 11 forks source link

Prevent launching debug jobs if no rule was found. #2

Closed Eiyeron closed 3 months ago

Eiyeron commented 3 months ago

Here's a small fix I got by randomly doing stuff when discovering the tool: trying to launch jobs where no rule was found would trigger a division by zero when trying to grab a random rule.

Feel free to tweak the code to fit your own UI/UX practices, while my patch does the trick, I'm not sure if that'd be the best or most future-proofed solution.

Have a nice day.

jlaumon commented 3 months ago

Good catch!