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:
@@ -276,7 +276,7 @@ AddOnManager::_RegisterAddOns()
|
|||||||
BDirectory directory;
|
BDirectory directory;
|
||||||
BPath path;
|
BPath path;
|
||||||
// when safemode, only B_SYSTEM_ADDONS_DIRECTORY is used
|
// 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++) {
|
i < sizeof(directories) / sizeof(directory_which); i++) {
|
||||||
for (int32 j = 0; j < subDirectoryCount; j++) {
|
for (int32 j = 0; j < subDirectoryCount; j++) {
|
||||||
if (find_directory(directories[i], &path) == B_OK
|
if (find_directory(directories[i], &path) == B_OK
|
||||||
|
|||||||
Reference in New Issue
Block a user