Ticket #10068: 0001-Fix-loading-add-ons-in-safemode.patch

File 0001-Fix-loading-add-ons-in-safemode.patch, 1.4 KB (added by mt, 11 years ago)
  • src/servers/index/IndexServer.cpp

    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()  
    339339    };
    340340
    341341    // when safemode, only B_SYSTEM_ADDONS_DIRECTORY is used
    342     for (uint32 i = safeMode ? 4 : 0;
     342    for (uint32 i = safeMode ? 3 : 0;
    343343            i < sizeof(directories) / sizeof(directory_which); i++) {
    344344        BDirectory directory;
    345345        node_ref nodeRef;
  • src/servers/media_addon/MediaAddonServer.cpp

    diff --git a/src/servers/media_addon/MediaAddonServer.cpp b/src/servers/media_addon/MediaAddonServer.cpp
    index 1b380d4..2b7f6e6 100644
    a b MediaAddonServer::ReadyToRun()  
    301301    };
    302302
    303303    // when safemode, only B_SYSTEM_ADDONS_DIRECTORY is used
    304     for (uint32 i = safeMode ? 4 : 0;
     304    for (uint32 i = safeMode ? 3 : 0;
    305305            i < sizeof(directories) / sizeof(directory_which); i++) {
    306306        BDirectory directory;
    307307        node_ref nodeRef;