From: Thomas Debesse Date: Tue, 18 Jul 2017 11:26:30 +0000 (+0200) Subject: refresh VFS on map change instead of restarting VFS, fix #105 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F53%2Fhead;p=xonotic%2Fnetradiant.git refresh VFS on map change instead of restarting VFS, 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. Hopefull, since I added a “Refresh” ability that refreshes the VFS without reloading the map, we can just use that Regresh ability instead. --- diff --git a/radiant/map.cpp b/radiant/map.cpp index 0c0fd5f7..bdc7841e 100644 --- a/radiant/map.cpp +++ b/radiant/map.cpp @@ -413,9 +413,9 @@ ModuleObservers g_mapPathObservers; class MapFileObserver : public ModuleObserver { void realise() { - // Restart VFS to apply new pak filtering based on mapname + // Refresh VFS to apply new pak filtering based on mapname // needed for daemon dpk vfs - VFS_Restart(); + VFS_Refresh(); } void unrealise() { } };