Started implementing 'edit' checks in the code today; essentially, every time the user makes a change to a map, this action is flagged. Should they opt to load in a map or exit the program, the Editor can then check whether or not there are unsaved changes and prompt accordingly.
This sort of checking can be somewhat tiresome, as there are dozens of checks that need to be added, so I concentrated mainly on the basic logic, setting up the necessary flags, putting warnings on the program exit points, and clearing the edit check flags should the user save their map or project.
As an afterthought, the Editor also prints an asterisk next to any layers which have been edited but not saved (like FrontPage, for example), so it's much easier to see which files need to be saved.
Rounded off the night by plucking another task off my list, that of regenerating the Brush Thumbnail images should the user load a new tileset. This was fairly painless thanks mainly to the modular nature of the thumbnail routine. Further tweaks may be required in order to tell each stored Brush while tileset to get its image from. Maybe. :)
