Skip to content
Closed
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
18 changes: 8 additions & 10 deletions commandLine/src/projects/baseProject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -404,16 +404,14 @@ bool baseProject::create(const fs::path & _path, string templateName){
}

bool baseProject::save(){
ofLog(OF_LOG_NOTICE) << "saving addons.make";

std::ofstream addonsMake(projectDir / "addons.make");
for (auto & a : addons) {
addonsMake << a.addonMakeName << std::endl;
// if (a.isLocalAddon) {
// addonsMake << fs::path(a.addonPath).generic_string() << std::endl;
// } else {
// addonsMake << a.name << std::endl;
// }
// no addons and no addons.make yet: don't create an empty one (#297).
// an existing one is still rewritten, so removing every addon clears it
if (addons.size() || fs::exists(projectDir / "addons.make")) {
ofLog(OF_LOG_NOTICE) << "saving addons.make";
std::ofstream addonsMake(projectDir / "addons.make");
for (auto & a : addons) {
addonsMake << a.addonMakeName << std::endl;
}
}

//save out params which the PG knows about to config.make
Expand Down
Loading