~openhommdev/openhomm/gui

« back to all changes in this revision

Viewing changes to src/core/hrFileEngineHandlers.cpp

  • Committer: Stanislav Ershov
  • Date: 2010-02-09 01:48:58 UTC
  • Revision ID: digital.stream.of.mind@gmail.com-20100209014858-j4hxtrebjdtblo9n
refactored and documented some code

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        QString file = fileName, archive;
36
36
 
37
37
        file.remove(0,5); // remove 'vfs:/' at the begining
38
 
        if ( hrFilesystem::findInCache(file.toLower(),archive) )
 
38
 
 
39
        archive = hrFilesystem::findInCache(file.toLower());
 
40
 
 
41
        if ( !archive.isNull() )
39
42
        {
40
43
            if ( archive.indexOf(".lod") != -1 )
41
44
                return new hrLodEngine(QString("lod:/") + archive + "/" + file);