Browse Source

Check if source exists before loading

master
Krisjanis Rijnieks 6 years ago
parent
commit
3c4643357c
  1. 6
      src/Application/SettingsLoader.cpp

6
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);

Loading…
Cancel
Save