--------------------------------------------------------------
| 1391 | |
| 1392 | //-------------------------------------------------------------- |
| 1393 | void DurationController::loadProject(string projectPath, bool forceCreate){ |
| 1394 | //scrape off the last component of the filename for the project name |
| 1395 | projectPath = ofFilePath::removeTrailingSlash(projectPath); |
| 1396 | #ifdef TARGET_WIN32 |
| 1397 | vector<string> pathComponents = ofSplitString(projectPath, "\\"); |
| 1398 | #else |
| 1399 | vector<string> pathComponents = ofSplitString(projectPath, "/"); |
| 1400 | #endif |
| 1401 | loadProject(projectPath, pathComponents[pathComponents.size()-1], forceCreate); |
| 1402 | } |
| 1403 | |
| 1404 | //-------------------------------------------------------------- |
| 1405 | void DurationController::loadProject(string projectPath, string projectName, bool forceCreate){ |
nothing calls this directly
no test coverage detected