Skip to content

Commit

Permalink
v47 - _OFProjectGeneratorVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitre authored Jun 10, 2024
1 parent 98920bc commit 9bbb018
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commandLine/src/projects/baseProject.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#define PG_VERSION "46"
#define PG_VERSION "47"

#include "ofAddon.h"
#include "pugixml.hpp"
Expand Down
8 changes: 6 additions & 2 deletions commandLine/src/projects/xcodeProject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,8 @@ bool xcodeProject::saveProjectFile(){

// debugCommands = true;

addCommand("# ---- PG VERSION " + getPGVersion());
addCommand("Add :a_OFProjectGeneratorVersion string " + getPGVersion());
// addCommand("# ---- PG VERSION " + getPGVersion());
// addCommand("Add :a_OFProjectGeneratorVersion string " + getPGVersion());

fileProperties fp;
// fp.isGroupWithoutFolder = true;
Expand Down Expand Up @@ -838,6 +838,9 @@ bool xcodeProject::saveProjectFile(){
json j { json::parse(contents) };
contents.close();

j["_OFProjectGeneratorVersion"] = getPGVersion();


for (auto & c : commands) {
// readable comments enabled now.
if (c != "" && c[0] != '#') {
Expand Down Expand Up @@ -881,6 +884,7 @@ bool xcodeProject::saveProjectFile(){
}
}


std::ofstream jsonFile(fileName);
try {
jsonFile << j.dump(1, ' ');
Expand Down

0 comments on commit 9bbb018

Please sign in to comment.