]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/qe3.cpp
load notex textures from a builtin vfs
[xonotic/netradiant.git] / radiant / qe3.cpp
index 789cdf160a68d2ebe13b9eb07f742c3ada44dd2c..af0f8f936b872626732915d99dfafa2fb6252966 100644 (file)
@@ -32,6 +32,7 @@
 // Leonardo Zide (leo@lokigames.com)
 //
 
+#include "defaults.h"
 #include "qe3.h"
 #include "globaldefs.h"
 
@@ -84,6 +85,11 @@ void QE_InitVFS()
     const char *userRoot = g_qeglobals.m_userEnginePath.c_str();
     const char *globalRoot = EnginePath_get();
 
+       // editor builtin VFS
+       StringOutputStream editorGamePath(256);
+       editorGamePath << GlobalRadiant().getAppPath() << DEFAULT_EDITORVFS_DIRNAME;
+       GlobalFileSystem().initDirectory(editorGamePath.c_str());
+
     // if we have a mod dir
     if (!string_equal(gamename, basegame)) {
         // ~/.<gameprefix>/<fs_game>