IsmAvatar / LateralGM

A free Game Maker source file editor
http://lateralgm.org/
Other
95 stars 25 forks source link

Open Project Exception Handling #467

Closed RobertBColton closed 4 years ago

RobertBColton commented 4 years ago

This is an alternative to #466 which simply gets rid of reloading the tree for anything but GMK. I made this after realizing the importance of rebuilding the tree for GMK. With GMK, the tree is not read until the very end, so if an exception occurs a tree would not otherwise exist. That is not the case with how we read GMX, which builds the tree as it reads each resource. Therefore, this redundant tree rebuilding in the event of an exception merely causes all of the resources to be duplicated on their root ancestor with their path truncated, making all further debugging impossible.