File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,12 +81,12 @@ bool VSCodeProject::createProjectFile(){
8181 ofLogError (LOG_NAME) << " error removing file " << " : " << templateConfig << " : " << e.what ();
8282 }
8383
84-
84+
8585 // Rename Project Workspace
8686 try {
8787 fs::rename (projectDir / " emptyExample.code-workspace" , workspace.fileName );
8888 } catch (fs::filesystem_error& e) {
89- ofLogError (LOG_NAME) << " error renaming folder " << " : " << workspace.fileName << " : " << e.what ();
89+ ofLogError (LOG_NAME) << " error renaming project " << " : " << workspace.fileName << " : " << e.what ();
9090 return false ;
9191 }
9292 return true ;
Original file line number Diff line number Diff line change @@ -24,7 +24,17 @@ baseProject::baseProject(const string & _target) : target(_target) {
2424}
2525
2626fs::path baseProject::getPlatformTemplateDir () {
27- return getOFRoot () / templatesFolder / target;
27+ string folder { target };
28+ if ( target == " msys2"
29+ || target == " linux"
30+ || target == " linux64"
31+ || target == " linuxarmv6l"
32+ || target == " linuxarmv7l"
33+ || target == " linuxaarch64"
34+ ) {
35+ folder = " vscode" ;
36+ }
37+ return getOFRoot () / templatesFolder / folder;
2838}
2939
3040
Original file line number Diff line number Diff line change 11#pragma once
22
3- #define PG_VERSION " 26 "
3+ #define PG_VERSION " 27 "
44
55#include " ofAddon.h"
66#include " ofFileUtils.h"
You can’t perform that action at this time.
0 commit comments