so Blender has this extremely fun user interface quirk where saving your .blend file doesn't actually save any images that are referenced by that .blend file, which is an extremely easy way to lose work when doing texture painting. you have to press alt+s in the texture window.
if you close blender without saving images, blender will helpfully block you from closing with a dialog that says you need to save them. but notably, this doesn't happen if blender crashes.
looking at the thread linked above (shoutouts to @itsonlythee for pointing me at it) i got very agitated about the fact that this is still a problem. i've hit this problem too and lost texture painting work! and it's shocking to me that nobody has made and posted a script addon that just... tries to save any unsaved images whenever you save your .blend file.
so i made a script addon that just tries to save any unsaved images whenever you save your .blend file. hooray.
i didn't actually post it in that thread yet because I'd like to test it a bit more first, but maybe I should just do that anyway. probably wouldn't make anything worse.

the sprite