From 5695dde92dc29accec0e93c2dbd49d9c10d59f54 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Tue, 18 Jul 2017 13:26:30 +0200 Subject: [PATCH] refresh VFS on map change instead of restarting VFS, fix #105 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- radiant/map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() { } }; -- 2.39.2