]> git.xonotic.org Git - xonotic/netradiant.git/commit
[dpkdir] revert *MapFileObservers() addition, fix #105
authorThomas Debesse <dev@illwieckz.net>
Tue, 18 Jul 2017 10:52:59 +0000 (12:52 +0200)
committerThomas Debesse <dev@illwieckz.net>
Sat, 29 Jul 2017 16:11:08 +0000 (18:11 +0200)
commit5186bc0aee4b0b577af6241a4abd34e0041cf77a
treeb82515c6b7fd2e74d32f51bcdf34f9f6e29184c8
parent3d62896e3c95c1450061ef9732860ef69ebe5db1
[dpkdir] revert *MapFileObservers() addition, fix #105

Neumond probably thoughts it would be cool to make a file observer
that reloads the VFS each time the map change, was a nice idea.
Badly, it makes the VFS reloading itself before saving a map,
losing the current work done.

Would be easier to not rely on that observer mechanism and just
make an explicit call to reload VFS when needed instead, so we
revert this part.

This VFS reload mechanism will be reintroduced in next commit.

This commit fixes #105 even if DPK VFS is not yet fully restored.

Note: this observer mechanism was also made available to plugins, so
it's not available to plugins anymore (it was not used, and it's a bad
idea, see the next commit).
radiant/map.cpp
radiant/map.h
radiant/plugin.cpp