Mercurial > fife-parpg
comparison 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 |
comparison
equal
deleted
inserted
replaced
694:ca1fcb96907d | 695:47d58c7a95d7 |
---|---|
167 FL_LOG(_log, "Creating VFS"); | 167 FL_LOG(_log, "Creating VFS"); |
168 m_vfs = new VFS(); | 168 m_vfs = new VFS(); |
169 | 169 |
170 FL_LOG(_log, "Adding root directory to VFS"); | 170 FL_LOG(_log, "Adding root directory to VFS"); |
171 m_vfs->addSource( new VFSDirectory(m_vfs) ); | 171 m_vfs->addSource( new VFSDirectory(m_vfs) ); |
172 m_vfs->addSource( new VFSDirectory(m_vfs, "./") ); | |
172 m_vfs->addProvider( new DirectoryProvider() ); | 173 m_vfs->addProvider( new DirectoryProvider() ); |
173 #ifdef HAVE_ZIP | 174 #ifdef HAVE_ZIP |
174 FL_LOG(_log, "Adding zip provider to VFS"); | 175 FL_LOG(_log, "Adding zip provider to VFS"); |
175 m_vfs->addProvider( new ZipProvider() ); | 176 m_vfs->addProvider( new ZipProvider() ); |
176 #endif | 177 #endif |