Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion EmotiBitOscilloscope/src/ofApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/ofxEmotiBitVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//#include <string>
#include "ofMain.h"

const std::string ofxEmotiBitVersion = "1.16.1";
const std::string ofxEmotiBitVersion = "1.16.2";

static const char SOFTWARE_VERSION_PREFIX = 'v';

Expand Down
Loading