From da406c1aa2fe106ff4417b734a34d65e05c95866 Mon Sep 17 00:00:00 2001
From: Murai Takashi <tmurai01@gmail.com>
Date: Sun, 6 Oct 2013 20:55:38 +0900
Subject: [PATCH] Fix loading add-ons in safemode
---
src/servers/index/IndexServer.cpp | 2 +-
src/servers/media_addon/MediaAddonServer.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/servers/index/IndexServer.cpp b/src/servers/index/IndexServer.cpp
index 7c55910..515e999 100644
a
|
b
|
IndexServer::_StartWatchingAddOns()
|
339 | 339 | }; |
340 | 340 | |
341 | 341 | // when safemode, only B_SYSTEM_ADDONS_DIRECTORY is used |
342 | | for (uint32 i = safeMode ? 4 : 0; |
| 342 | for (uint32 i = safeMode ? 3 : 0; |
343 | 343 | i < sizeof(directories) / sizeof(directory_which); i++) { |
344 | 344 | BDirectory directory; |
345 | 345 | node_ref nodeRef; |
diff --git a/src/servers/media_addon/MediaAddonServer.cpp b/src/servers/media_addon/MediaAddonServer.cpp
index 1b380d4..2b7f6e6 100644
a
|
b
|
MediaAddonServer::ReadyToRun()
|
301 | 301 | }; |
302 | 302 | |
303 | 303 | // when safemode, only B_SYSTEM_ADDONS_DIRECTORY is used |
304 | | for (uint32 i = safeMode ? 4 : 0; |
| 304 | for (uint32 i = safeMode ? 3 : 0; |
305 | 305 | i < sizeof(directories) / sizeof(directory_which); i++) { |
306 | 306 | BDirectory directory; |
307 | 307 | node_ref nodeRef; |