diff --git a/commandLine/src/defines.h b/commandLine/src/defines.h index ac1f9c0a..ca722e1f 100644 --- a/commandLine/src/defines.h +++ b/commandLine/src/defines.h @@ -1,5 +1,5 @@ #define OFPROJECTGENERATOR_MAJOR_VERSION 0 -#define OFPROJECTGENERATOR_MINOR_VERSION 72 +#define OFPROJECTGENERATOR_MINOR_VERSION 73 #define OFPROJECTGENERATOR_PATCH_VERSION 0 -#define PG_VERSION "0.72.0" +#define PG_VERSION "0.73.0" diff --git a/commandLine/src/projects/xcodeProject.cpp b/commandLine/src/projects/xcodeProject.cpp index 0159fc0e..811e26b4 100644 --- a/commandLine/src/projects/xcodeProject.cpp +++ b/commandLine/src/projects/xcodeProject.cpp @@ -224,6 +224,8 @@ void xcodeProject::saveMakefile(){ bool xcodeProject::loadProjectFile(){ //base + addCommand("Add :_OFProjectGeneratorVersion string " + getPGVersion()); + renameProject(); // MARK: just to return something. return true; @@ -902,11 +904,8 @@ bool xcodeProject::saveProjectFile(){ contents.close(); - - // j["_OFProjectGeneratorVersion"] = getPGVersion(); - - for (auto & c : commands) { + //alert (c, 31); // readable comments enabled now. if (c != "" && c[0] != '#') { vector cols { ofSplitString(c, " ") }; @@ -958,6 +957,7 @@ bool xcodeProject::saveProjectFile(){ std::ofstream jsonFile(fileName); + // This is not pretty but address some differences in nlohmann json 3.11.2 to 3.11.3 auto dump = j.dump(1, ' '); if (dump[0] == '[') { dump = j[0].dump(1, ' ');