Rangi42 / polished-map

A map and tileset editor for pokecrystal, pokered, and projects based on them. Written in C++ with FLTK.
https://hax.iimarckus.org/topic/7222/
Other
191 stars 22 forks source link

Detect files modified by another program #53

Closed Rangi42 closed 3 years ago

Rangi42 commented 3 years ago

Polished Map edits many files at once: the map .blk, script .asm, tileset .png, palette_map.asm, metatiles.bin, collision.asm, roof .png... Some of these, like the script .asm, are more likely to have been edited in a separate program even if they're already open in Polished Map.

Polished Map could record the modification time of each file it opens/loads, and when saving, compare that with the current modification time. If the current time is newer, confirm before overwriting. (Canceling the save of one file should continue with the rest, since Ctrl+S saves them all.)

Rangi42 commented 3 years ago

Tilemap Studio doesn't bother with this because the tilemap files are unlikely to be edited by something else, and you're not editing multiple files at once.