diff engine/core/controller/engine.cpp @ 695:47d58c7a95d7

Fixed a bug in VFSDirectory that prevented absolute paths from being resolved. * Modified the VFSDirectory constructor so that it now adds the drive root as the VFS root by default, instead of the current working directory. * Added the current working directory to the VFS in Engine::preInit in addition to the default drive root. * Reverted a change to EventManager::processMouseEvent which prevents GUIChan from grabbing mouse input. The fact that GUIChan grabs all mouse input will need to be addressed once the GUI code is modularized.
author M. George Hansen <technopolitica@gmail.com>
date Fri, 10 Jun 2011 23:36:14 -1000
parents ca1fcb96907d
children e201abd8c807
line wrap: on
line diff
--- a/engine/core/controller/engine.cpp	Fri Jun 10 23:35:30 2011 -1000
+++ b/engine/core/controller/engine.cpp	Fri Jun 10 23:36:14 2011 -1000
@@ -169,6 +169,7 @@
 
 		FL_LOG(_log, "Adding root directory to VFS");
 		m_vfs->addSource( new VFSDirectory(m_vfs) );
+		m_vfs->addSource( new VFSDirectory(m_vfs, "./") );
 		m_vfs->addProvider( new DirectoryProvider() );
 #ifdef HAVE_ZIP
 		FL_LOG(_log, "Adding zip provider to VFS");