soopercool101 / BrawlCrate

BrawlBox/BrawlTools Fork, Wii File Editor
https://discord.gg/s7c8763
GNU Lesser General Public License v3.0
148 stars 38 forks source link

IsDirty Now Checks BRSAR Files for Changes #49

Closed QuickLava closed 1 year ago

QuickLava commented 1 year ago

Fixes an issue which prevented certain changes in BRSAR files (eg. changing sound params) from flagging the RSAR node as dirty, preventing those changes from being saved.

This happens because the ResourceNode IsDirty check only looks at proper node children, ignoring the RSAR's Files list, which is where the changes being ignored are located.

Giving the RSAR node an override for the IsDirty check which does check the Files list fixes the problem.