Skip to content

Commit 2163abe

Browse files
authored
PG fixes (#347)
1 parent 2ef9986 commit 2163abe

2 files changed

Lines changed: 4 additions & 13 deletions

File tree

commandLine/src/main.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ bool containsFolder(fs::path path, std::string folderName) {
200200

201201
bool isGoodProjectPath(fs::path path) {
202202
if (!fs::is_directory(path)) return false;
203-
return containsFolder(path, "src");
203+
return fs::exists(path / "src");
204204
}
205205

206206
bool isGoodOFPath(fs::path path) {
@@ -225,12 +225,6 @@ void updateProject(const fs::path & path, ofTargetPlatform target, bool bConside
225225
if (!bDryRun) project->create(path, templateName);
226226

227227
if(bConsiderParameterAddons && bAddonsPassedIn){
228-
229-
//cout << "---->> addons.size " << addons.size() << endl;
230-
for (auto & a : addons) {
231-
cout << a << endl;
232-
}
233-
234228
for(auto & addon: addons){
235229
project->addAddon(addon);
236230
}
@@ -258,6 +252,7 @@ void recursiveUpdate(const fs::path & path, ofTargetPlatform target) {
258252
auto project = getTargetProject(target);
259253
updateProject(path, target, false);
260254
return;
255+
} else {
261256
}
262257

263258
// finally, recursively look at this
@@ -495,7 +490,7 @@ int main(int argc, char** argv){
495490
mode = PG_MODE_CREATE;
496491
}
497492
//XAXA TEMP
498-
mode = PG_MODE_CREATE;
493+
// mode = PG_MODE_CREATE;
499494

500495

501496
if (bVerbose){

commandLine/src/projects/baseProject.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,6 @@ void baseProject::addAddon(ofAddon & addon){
493493
}
494494

495495
void baseProject::parseAddons(){
496-
alert("--- parseAddons");
497-
498496
ofFile addonsMake(ofFilePath::join(projectDir,"addons.make"));
499497
ofBuffer addonsMakeMem;
500498
addonsMake >> addonsMakeMem;
@@ -504,8 +502,6 @@ void baseProject::parseAddons(){
504502
if(addon == "") continue;
505503
addAddon(ofSplitString(addon, "#")[0]);
506504
}
507-
alert("--- end parseAddons");
508-
509505
}
510506

511507
void baseProject::parseConfigMake(){
@@ -549,7 +545,7 @@ void baseProject::recursiveCopyContents(const fs::path & srcDir, const fs::path
549545
auto f = entry.path();
550546
auto destFile = destDir / f.filename();
551547
if (fs::is_directory(f)) {
552-
recursiveTemplateCopy(f, destFile);
548+
recursiveCopyContents(f, destFile);
553549
} else {
554550
if (!fs::exists(destFile)) {
555551
fs::copy_file(f, destFile);

0 commit comments

Comments
 (0)