hgl: traverse add-on entries
[mesa.git] / src / hgl / GLRendererRoster.cpp
index 1712a871c985e87ee5799a53f2d6b6ae8f3b7a9c..9e5d847a1d74971cf4baca699f6e6dbb531f67f9 100644 (file)
@@ -17,7 +17,7 @@
 #include <Directory.h>
 #include <FindDirectory.h>
 #include <Path.h>
-#include <String.h>
+#include <strings.h>
 #include "GLDispatcher.h"
 #include "GLRendererRoster.h"
 
@@ -144,7 +144,7 @@ GLRendererRoster::AddPath(const char* path)
        entry_ref ref;
        BEntry entry;
        while (directory.GetNextRef(&ref) == B_OK) {
-               entry.SetTo(&ref);
+               entry.SetTo(&ref, true);
                if (entry.InitCheck() == B_OK && !entry.IsFile())
                        continue;
 
@@ -187,7 +187,7 @@ GLRendererRoster::AddRenderer(BGLRenderer* renderer,
 status_t
 GLRendererRoster::CreateRenderer(const entry_ref& ref)
 {
-       BEntry entry(&ref);
+       BEntry entry(&ref, true);
        node_ref nodeRef;
        status_t status = entry.GetNodeRef(&nodeRef);
        if (status < B_OK)