pk-hack / CoilSnake

https://pk-hack.github.io/CoilSnake/
GNU General Public License v3.0
158 stars 37 forks source link

Refactor ROM type strings + fix Block-related compilation failure #277

Closed charasyn closed 10 months ago

charasyn commented 10 months ago

Instead of being hardcoded throughout the codebase, these are now defined in variables and those variables are used throughout.

This also has a fix for a bug introduced with the last PR, where ROM compilation will fail due to a block's data being deleted. The solution is to avoid deleting the block's data in the __exit__ function, and just let it be destroyed when the Block does.