From 74715580dd6809295c5851fd61ed89b4bf796bd5 Mon Sep 17 00:00:00 2001 From: Nitin Nair Date: Thu, 9 Apr 2026 16:58:05 +0530 Subject: [PATCH 1/2] Added check for background file existance --- EmotiBitOscilloscope/src/ofApp.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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(); } From eca3260c346a2030c2907de093b0c30909673af3 Mon Sep 17 00:00:00 2001 From: Nitin Nair Date: Thu, 9 Apr 2026 17:32:34 +0530 Subject: [PATCH 2/2] bump version to v1.6.2 --- src/ofxEmotiBitVersion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';