diff --git a/src/Application/SettingsLoader.cpp b/src/Application/SettingsLoader.cpp index 38d0fb2..3252422 100644 --- a/src/Application/SettingsLoader.cpp +++ b/src/Application/SettingsLoader.cpp @@ -84,6 +84,12 @@ bool SettingsLoader::load( pathss << ofToDataPath(dir, true) << sourceName; std::string sourcePath = pathss.str(); + // Check if file exists + // Continue for loop if not + if(!ofFile::doesFileExist(sourcePath)){ + continue; + } + // Load media by using full path source = mediaServer.loadMedia(sourcePath, typeEnum);