diff --git a/EmotiBitOscilloscope/src/ofApp.cpp b/EmotiBitOscilloscope/src/ofApp.cpp index 526a784..83a17a9 100644 --- a/EmotiBitOscilloscope/src/ofApp.cpp +++ b/EmotiBitOscilloscope/src/ofApp.cpp @@ -1144,7 +1144,16 @@ void ofApp::loadWindowSettings() string bgPath = xml.getValue("backgroundImagePath", ""); if (!bgPath.empty()) { - background_image_.load(ofToDataPath(bgPath)); + //TODO: Add handling of specifying image not in the bin/data directory + ofFile bgImgFile(ofToDataPath(bgPath)); + if(bgImgFile.exists()) + { + background_image_.load(ofToDataPath(bgPath)); + } + else + { + ofLogWarning() << "Image file not found. Please ensure image exists at the provided path. Proceeding without a background image" << std::endl; + } } xml.popTag(); } diff --git a/src/ofxEmotiBitVersion.h b/src/ofxEmotiBitVersion.h index 6445f9a..eb168d6 100644 --- a/src/ofxEmotiBitVersion.h +++ b/src/ofxEmotiBitVersion.h @@ -2,7 +2,7 @@ //#include #include "ofMain.h" -const std::string ofxEmotiBitVersion = "1.16.1"; +const std::string ofxEmotiBitVersion = "1.16.2"; static const char SOFTWARE_VERSION_PREFIX = 'v';