--------------------------------------------------------------
| 1345 | |
| 1346 | //-------------------------------------------------------------- |
| 1347 | void DurationController::newProject(string projectPath){ |
| 1348 | //scrape off the last component of the filename for the project name |
| 1349 | projectPath = ofFilePath::removeTrailingSlash(projectPath); |
| 1350 | #ifdef TARGET_WIN32 |
| 1351 | vector<string> pathComponents = ofSplitString(projectPath, "\\"); |
| 1352 | #else |
| 1353 | vector<string> pathComponents = ofSplitString(projectPath, "/"); |
| 1354 | #endif |
| 1355 | newProject(projectPath, pathComponents[pathComponents.size()-1]); |
| 1356 | } |
| 1357 | |
| 1358 | //-------------------------------------------------------------- |
| 1359 | void DurationController::newProject(string newProjectPath, string newProjectName){ |
nothing calls this directly
no outgoing calls
no test coverage detected