Skip to content

Commit 9bbb018

Browse files
authored
v47 - _OFProjectGeneratorVersion
1 parent 98920bc commit 9bbb018

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

commandLine/src/projects/baseProject.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#define PG_VERSION "46"
3+
#define PG_VERSION "47"
44

55
#include "ofAddon.h"
66
#include "pugixml.hpp"

commandLine/src/projects/xcodeProject.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -799,8 +799,8 @@ bool xcodeProject::saveProjectFile(){
799799

800800
// debugCommands = true;
801801

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

805805
fileProperties fp;
806806
// fp.isGroupWithoutFolder = true;
@@ -838,6 +838,9 @@ bool xcodeProject::saveProjectFile(){
838838
json j { json::parse(contents) };
839839
contents.close();
840840

841+
j["_OFProjectGeneratorVersion"] = getPGVersion();
842+
843+
841844
for (auto & c : commands) {
842845
// readable comments enabled now.
843846
if (c != "" && c[0] != '#') {
@@ -881,6 +884,7 @@ bool xcodeProject::saveProjectFile(){
881884
}
882885
}
883886

887+
884888
std::ofstream jsonFile(fileName);
885889
try {
886890
jsonFile << j.dump(1, ' ');

0 commit comments

Comments
 (0)