Fix unintentional change that broke input_server in safemode.

The change to this initial index for safemode was brought in with the
flat import of the package manager branch in 323b654 where presumably
more paths were used. With this value selecting either just safe mode
or disable user add-ons would lead to no input_server add-ons being
loaded at all, leading to a system without input.
This commit is contained in:
Michael Lotz
2011-12-02 14:07:55 +01:00
parent 6460ec0118
commit e791096b81
+1 -1
View File
@@ -276,7 +276,7 @@ AddOnManager::_RegisterAddOns()
BDirectory directory;
BPath path;
// when safemode, only B_SYSTEM_ADDONS_DIRECTORY is used
for (uint32 i = fSafeMode ? 4 : 0;
for (uint32 i = fSafeMode ? 2 : 0;
i < sizeof(directories) / sizeof(directory_which); i++) {
for (int32 j = 0; j < subDirectoryCount; j++) {
if (find_directory(directories[i], &path) == B_OK