]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/mainframe.cpp
refresh DPK VFS before refreshing textures
[xonotic/netradiant.git] / radiant / mainframe.cpp
index 8abd6e2a5e8a86286d209bf5232d50242edf27b6..7a9e141ee45b9e9f4c6e503bfc2a31506135b332 100644 (file)
@@ -160,6 +160,13 @@ void VFS_Shutdown(){
        GlobalFileSystem().shutdown();
        g_vfsInitialized = false;
 }
+void VFS_Refresh(){
+       if ( !g_vfsInitialized ) return;
+       GlobalFileSystem().clear();
+       QE_InitVFS();
+       GlobalFileSystem().refresh();
+       g_vfsInitialized = true;
+}
 void VFS_Restart(){
        VFS_Shutdown();
        VFS_Init();