]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/mainframe.cpp
supports XDG_CONFIG_HOME on Linux
[xonotic/netradiant.git] / radiant / mainframe.cpp
index 4175caf5ab036d347c856c73f6d3a31c62bf3dbd..53ef24a60f3d2371f37c0cc811c2eb4d7271d056 100644 (file)
 #include "renderstate.h"
 #include "feedback.h"
 #include "referencecache.h"
-
+#include "texwindow.h"
 
 
 struct layout_globals_t
@@ -160,6 +160,15 @@ void VFS_Shutdown(){
        GlobalFileSystem().shutdown();
        g_vfsInitialized = false;
 }
+void VFS_Refresh(){
+       if ( !g_vfsInitialized ) return;
+       GlobalFileSystem().clear();
+       QE_InitVFS();
+       GlobalFileSystem().refresh();
+       g_vfsInitialized = true;
+       // also refresh texture browser
+       TextureBrowser_RefreshShaders();
+}
 void VFS_Restart(){
        VFS_Shutdown();
        VFS_Init();