ethangreen-dev / lovely-injector

A runtime lua injector for games built with LÖVE
MIT License
64 stars 10 forks source link

No warnings on nonexistent target for a patch #55

Open english5040 opened 3 months ago

english5040 commented 3 months ago

Due to the way patches are collected and applied (stored in one array, with a conditional on the target during application), there is no warning on nonexistent target of a patch.

Proposed algorithm: Use a map, where each target is mapped to patches for that target