Skip to content

Commit

Permalink
ofToDataPath now supports windows root paths. Closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ofTheo committed Oct 23, 2009
1 parent 741e986 commit 8b11110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/openFrameworks/utils/ofUtils.cpp
Expand Up @@ -146,7 +146,7 @@ string ofToDataPath(string path, bool makeAbsolute){

//check if absolute path has been passed or if data path has already been applied
//do we want to check for C: D: etc ?? like substr(1, 2) == ':' ??
if( path.substr(0,1) != "/" && path.substr(0,dataPathRoot.length()) != dataPathRoot){
if( path.substr(0,1) != "/" && path.substr(1,1) != ":" && path.substr(0,dataPathRoot.length()) != dataPathRoot){
path = dataPathRoot+path;
}

Expand Down

0 comments on commit 8b11110

Please sign in to comment.