diff --git a/code/nel/tools/pipeline/service/module_pipeline_master.cpp b/code/nel/tools/pipeline/service/module_pipeline_master.cpp index 2dad81d3a..ab15d29b8 100644 --- a/code/nel/tools/pipeline/service/module_pipeline_master.cpp +++ b/code/nel/tools/pipeline/service/module_pipeline_master.cpp @@ -213,7 +213,7 @@ public: CModulePipelineMasterSkel::init(this); if (PIPELINE::tryDirectTask("MASTER_INIT_SHEETS")) { - updateSheetsDatabaseStatus(CCallback(this, &CModulePipelineMaster::cbMasterInitSheets)); + updateSheetsDatabaseStatus(); } else { @@ -222,8 +222,17 @@ public: return true; } + static void dummyCallback() { } static void dummyFileStatusCallback(const std::string &/*filePath*/, const CFileStatus &/*fileStatus*/, bool /*success*/) { } + void updateSheetsDatabaseStatus() + { + std::vector sheetPaths; + sheetPaths.push_back(NLNET::IService::getInstance()->ConfigFile.getVar("WorkspaceSheetDirectory").asString()); + g_DatabaseStatus->updateDatabaseStatus(dummyCallback, dummyFileStatusCallback, sheetPaths, true, true); // relatively fast so no need to thread + PIPELINE::endedDirectTask(); + } + void updateSheetsDatabaseStatus(const CCallback &callback) { std::vector sheetPaths;