Sfoglia il codice sorgente

- Fixed module manager recursion issue when not scanning at root-path only.

MelvMay-GG 12 anni fa
parent
commit
ce1e7f03d2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      engine/source/module/moduleManager.cc

+ 1 - 1
engine/source/module/moduleManager.cc

@@ -183,7 +183,7 @@ bool ModuleManager::scanModules( const char* pPath, const bool rootOnly )
     Vector<StringTableEntry> directories;
 
     // Find directories.
-    if ( !Platform::dumpDirectories( pathBuffer, directories, 1 ) )
+    if ( !Platform::dumpDirectories( pathBuffer, directories, rootOnly ? 1 : -1 ) )
     {
         // Failed so warn.
         Con::warnf( "Module Manager: Failed to scan module directories in path '%s'.", pathBuffer );