Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
2e03222
not working yet
dimitre Aug 3, 2022
2c9f061
some more
dimitre Aug 10, 2022
910f7d2
ok finally
dimitre Aug 10, 2022
554beb1
update
dimitre Aug 11, 2022
992b2d5
of::filesystem
dimitre Aug 11, 2022
b101f89
fix non macos files
dimitre Aug 12, 2022
5b4d74e
now working with make
dimitre Aug 14, 2022
b7756d9
fileutils
dimitre Aug 14, 2022
2f338b6
tests
dimitre Aug 14, 2022
405273b
fix other platforms
dimitre Aug 14, 2022
9dcd50e
assimp fix
dimitre Aug 14, 2022
2011155
join fix
dimitre Aug 14, 2022
63a3de1
more updates
dimitre Aug 14, 2022
d85de52
more updates
dimitre Aug 14, 2022
768da30
more updates 3
dimitre Aug 14, 2022
87e7ee4
more updates 5
dimitre Aug 14, 2022
2c2397d
more 6
dimitre Aug 14, 2022
f99500e
update 7
dimitre Aug 14, 2022
9e580bf
fix 8
dimitre Aug 14, 2022
0cbe497
up 9
dimitre Aug 14, 2022
3011a65
workflows and ofxSvg
dimitre Aug 14, 2022
171310c
up 10
dimitre Aug 15, 2022
0a0c8d7
actions
dimitre Aug 15, 2022
a7c70ff
ccache
dimitre Aug 15, 2022
16c25a2
ccache
dimitre Aug 15, 2022
685a2d9
act
dimitre Aug 15, 2022
ccc8feb
act
dimitre Aug 15, 2022
6edfd28
act
dimitre Aug 15, 2022
d1c0a84
act
dimitre Aug 15, 2022
3135f5b
act
dimitre Aug 15, 2022
7b6ee70
act
dimitre Aug 15, 2022
d2d2f04
actions
dimitre Aug 15, 2022
98fcfa5
actions
dimitre Aug 15, 2022
5457d30
actions
dimitre Aug 15, 2022
2b8fa6f
actions
dimitre Aug 15, 2022
4f5ee39
make -j -s
dimitre Aug 15, 2022
469685f
up
dimitre Aug 15, 2022
a52a6a9
Merge branch 'openframeworks:master' into lite
dimitre Aug 23, 2022
118955c
reverting some updates to master
dimitre Sep 28, 2022
38aba25
reverting
dimitre Sep 28, 2022
49f20f7
updates
dimitre Sep 28, 2022
f7a66d1
updates
dimitre Sep 28, 2022
d608ceb
revert files
dimitre Sep 28, 2022
8940614
more
dimitre Sep 28, 2022
abe1458
updates
dimitre Sep 28, 2022
b12b190
ofdirectoshowplayer
dimitre Sep 28, 2022
af277ff
font
dimitre Sep 28, 2022
5eefe56
Merge branch 'master' into filesystem
dimitre Sep 28, 2022
b0d4765
fix android
dimitre Sep 28, 2022
c5b749c
filesystem spaghetti
dimitre Sep 29, 2022
f4716a5
update
dimitre Sep 29, 2022
7db22f0
constants
dimitre Sep 29, 2022
696e8fe
ofSetDataPathRoot
dimitre Sep 29, 2022
c62e854
update test
dimitre Sep 29, 2022
aa06269
updates
dimitre Sep 29, 2022
9d37db4
getAbsolutePath
dimitre Sep 29, 2022
10740c4
unittest
dimitre Sep 29, 2022
ac9478e
assimp
dimitre Sep 29, 2022
c9b5f18
fix tests for mingw
dimitre Sep 29, 2022
fa47f8a
Merge branch 'master' into filesystem
dimitre Oct 1, 2022
3af37ad
update constants
dimitre Oct 1, 2022
6f85521
reverting more files
dimitre Oct 1, 2022
cafcc3e
updates
dimitre Oct 1, 2022
7368359
assimp fix?
dimitre Oct 2, 2022
34a7a6b
constants
dimitre Oct 2, 2022
a0d6288
namespace fix
dimitre Oct 2, 2022
bca09a0
actions
dimitre Oct 2, 2022
5e7134a
filePath
dimitre Oct 2, 2022
162663d
updates
dimitre Oct 2, 2022
269f768
rm removed files
dimitre Oct 5, 2022
9d96dac
updates
dimitre Jan 31, 2023
67216b3
Merge branch 'openframeworks:master' into filesystem
dimitre Jan 31, 2023
469f5a6
fixing conflicts
dimitre Feb 12, 2023
b386f80
assimp
dimitre Feb 12, 2023
d647ccf
update filesystem::path
dimitre Feb 12, 2023
2b04fe7
fix assimp textures load, still needs some cleanup
dimitre Feb 12, 2023
464f9fb
update
dimitre Feb 12, 2023
2d3706e
Merge branch 'openframeworks:master' into filesystem
dimitre Feb 15, 2023
0dd7001
fix conflicts
dimitre Feb 17, 2023
a5f4285
updates
dimitre Feb 17, 2023
74ac3c0
remove constants
dimitre Feb 17, 2023
a279999
comment cleanup
dimitre Feb 17, 2023
5d1adf4
remove .string()
dimitre Feb 17, 2023
4cf8462
Merge branch 'master' into filesystem
dimitre Feb 25, 2023
201e5fb
Merge branch 'filesystem' into updatefs
dimitre Feb 25, 2023
65ed292
Merge pull request #16 from openframeworks/updatefs
dimitre Feb 25, 2023
381013b
cubemap fix
dimitre Feb 25, 2023
ee78c03
fix assimp
dimitre Feb 25, 2023
2f0d9d4
cleanup comment
dimitre Feb 25, 2023
252a8a6
uniformity in spaces
dimitre Feb 25, 2023
5113cf0
uniformity in spaces
dimitre Feb 25, 2023
5d47d83
cleanup comments
dimitre Feb 25, 2023
8cdf577
comments cleanup
dimitre Feb 25, 2023
c36e856
string alongside path
dimitre Mar 4, 2023
a89cd81
back to string on return types
dimitre Mar 4, 2023
80c1299
fixes
dimitre Mar 4, 2023
376211e
fix issues
dimitre Mar 6, 2023
d2d874e
more fixes
dimitre Mar 6, 2023
bb9558e
tests fix
dimitre Mar 6, 2023
70c2fa9
try catch
dimitre Mar 7, 2023
fa895ae
try catch in #else
dimitre Mar 7, 2023
76ef977
typo
dimitre Mar 7, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/ofxAndroid/src/ofAppAndroidWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ Java_cc_openframeworks_OFAndroid_setAppDataDir( JNIEnv* env, jobject thiz, jst
jboolean iscopy;
const char *mfile = env->GetStringUTFChars(data_dir, &iscopy);
__android_log_print(ANDROID_LOG_INFO,"ofAppAndroidWindow",("setting app dir name to: \"" + string(mfile) + "\"").c_str());
ofSetDataPathRoot(string(mfile)+"/");
ofSetDataPathRoot({ string(mfile)+"/" });
env->ReleaseStringUTFChars(data_dir, mfile);
}

Expand Down
2 changes: 1 addition & 1 deletion addons/ofxAndroid/src/ofxAndroidSoundPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ofxAndroidSoundPlayer::~ofxAndroidSoundPlayer(){


//------------------------------------------------------------
bool ofxAndroidSoundPlayer::load(const std::filesystem::path& fileName, bool stream){
bool ofxAndroidSoundPlayer::load(const of::filesystem::path& fileName, bool stream){
if(!javaSoundPlayer){
ofLogError("ofxAndroidSoundPlayer") << "loadSound(): java SoundPlayer not loaded";
return false;
Expand Down
2 changes: 1 addition & 1 deletion addons/ofxAndroid/src/ofxAndroidSoundPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ofxAndroidSoundPlayer: public ofBaseSoundPlayer{
ofxAndroidSoundPlayer();
virtual ~ofxAndroidSoundPlayer();

bool load(const std::filesystem::path& fileName, bool stream = false);
bool load(const of::filesystem::path& fileName, bool stream = false);
void unload();
void play();
void stop();
Expand Down
16 changes: 8 additions & 8 deletions addons/ofxAssimpModelLoader/src/ofxAssimpModelLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,20 +388,20 @@ void ofxAssimpModelLoader::loadGLResources(){
auto ogPath = texPathStr;
bool bHasEmbeddedTexture = false;

string modelFolder = ofFilePath::getEnclosingDirectory( file.path() );
string relTexPath = ofFilePath::getEnclosingDirectory(texPathStr,false);
string texFile = ofFilePath::getFileName(texPathStr);
string realPath = ofFilePath::join(ofFilePath::join(modelFolder, relTexPath), texFile);
auto modelFolder = ofFilePath::getEnclosingDirectory( file.path() );
auto relTexPath = ofFilePath::getEnclosingDirectory(texPathStr,false);
auto realPath = modelFolder / of::filesystem::path{ texPathStr };


#ifndef TARGET_LINUX_ARM
if(bTryEmbed || ofFile::doesFileExist(realPath) == false) {
auto embeddedTexture = scene->GetEmbeddedTexture(ogPath.c_str());
if( embeddedTexture ){
bHasEmbeddedTexture = true;
ofLogVerbose("ofxAssimpModelLoader") << "loadGLResource() texture " << texFile << " is embedded ";
ofLogVerbose("ofxAssimpModelLoader") << "loadGLResource() texture " << realPath.filename() << " is embedded ";
}else{
ofLogError("ofxAssimpModelLoader") << "loadGLResource(): texture doesn't exist: \""
<< file.getFileName() + "\" in \"" << realPath << "\"";
<< file.getFileName() + "\" in \"" << realPath.string() << "\"";
}
}
#endif
Expand All @@ -419,7 +419,7 @@ void ofxAssimpModelLoader::loadGLResources(){
meshHelper.addTexture(assimpTexture);

ofLogVerbose("ofxAssimpModelLoader") << "loadGLResource(): texture already loaded: \""
<< file.getFileName() + "\" from \"" << realPath << "\"" << " adding texture as " << assimpTexture.getTextureTypeAsString() ;
<< file.getFileName() + "\" from \"" << realPath.string() << "\"" << " adding texture as " << assimpTexture.getTextureTypeAsString() ;
} else {

shared_ptr<ofTexture> texture = std::make_shared<ofTexture>();
Expand Down Expand Up @@ -463,7 +463,7 @@ void ofxAssimpModelLoader::loadGLResources(){
ofLogVerbose("ofxAssimpModelLoader") << "loadGLResource(): texture " << tmpTex.getTextureTypeAsString() << " loaded, dimensions: " << texture->getWidth() << "x" << texture->getHeight();
}else{
ofLogError("ofxAssimpModelLoader") << "loadGLResource(): couldn't load texture: \""
<< file.getFileName() + "\" from \"" << realPath << "\"";
<< file.getFileName() + "\" from \"" << realPath.string() << "\"";
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion addons/ofxAssimpModelLoader/src/ofxAssimpModelLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "ofxAssimpTexture.h"
#include "ofMesh.h"
#include "ofMath.h"
#include "ofConstants.h"

#include <assimp/Importer.hpp>

Expand Down Expand Up @@ -177,7 +178,10 @@ class ofxAssimpModelLoader{
glm::mat4 modelMatrix;

std::vector<ofLight> lights;
std::map<std::string,std::shared_ptr<ofTexture>> textures;
std::map<
of::filesystem::path,
std::shared_ptr<ofTexture>
> textures;
std::vector<ofxAssimpMeshHelper> modelMeshes;
std::vector<ofxAssimpAnimation> animations;
int currentAnimation; // DEPRECATED - to be removed with deprecated animation functions.
Expand Down
4 changes: 2 additions & 2 deletions addons/ofxAssimpModelLoader/src/ofxAssimpTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "ofxAssimpTexture.h"
#include "ofLog.h"

void ofxAssimpTexture::setup(const ofTexture & texture, std::string texturePath, bool bTexRepeat) {
void ofxAssimpTexture::setup(const ofTexture & texture, const of::filesystem::path & texturePath, bool bTexRepeat) {
this->texture = texture;
if( bTexRepeat ){
this->texture.setTextureWrap(GL_REPEAT, GL_REPEAT);
Expand Down Expand Up @@ -42,7 +42,7 @@ ofTexture & ofxAssimpTexture::getTextureRef() {
return texture;
}

std::string ofxAssimpTexture::getTexturePath() {
of::filesystem::path ofxAssimpTexture::getTexturePath() {
return texturePath;
}

Expand Down
6 changes: 3 additions & 3 deletions addons/ofxAssimpModelLoader/src/ofxAssimpTexture.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class ofxAssimpTexture {

public:

void setup(const ofTexture & texture, std::string texturePath, bool bTexRepeat = true);
void setup(const ofTexture & texture, const of::filesystem::path & texturePath, bool bTexRepeat = true);

ofTexture & getTextureRef();
std::string getTexturePath();
of::filesystem::path getTexturePath();
bool hasTexture();

void setTextureType(aiTextureType aTexType);
Expand All @@ -27,7 +27,7 @@ class ofxAssimpTexture {
private:

ofTexture texture;
std::string texturePath;
of::filesystem::path texturePath;
aiTextureType textureType;
std::string mTexTypeStr;
};
6 changes: 3 additions & 3 deletions addons/ofxEmscripten/src/ofxEmscriptenURLFileLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ ofHttpResponse ofxEmscriptenURLFileLoader::get(const string & url){
return ofHttpResponse();
}

int ofxEmscriptenURLFileLoader::getAsync(const string & url, const string & name){
int ofxEmscriptenURLFileLoader::getAsync(const string & url, const string & name){
ofHttpRequest * req = new ofHttpRequest(url,name,false);
#if __EMSCRIPTEN_major__>1 || (__EMSCRIPTEN_major__==1 && __EMSCRIPTEN_minor__>22)
emscripten_async_wget2_data(url.c_str(), "GET", "", req, true, &onload_cb, &onerror_cb, NULL);
#endif
return req->getId();
}

ofHttpResponse ofxEmscriptenURLFileLoader::saveTo(const string & url, const std::filesystem::path & path){
ofHttpResponse ofxEmscriptenURLFileLoader::saveTo(const string & url, const of::filesystem::path & path){
saveAsync(url,path);
return ofHttpResponse();
}

int ofxEmscriptenURLFileLoader::saveAsync(const string & url, const std::filesystem::path & path){
int ofxEmscriptenURLFileLoader::saveAsync(const string & url, const of::filesystem::path & path){
ofHttpRequest * req = new ofHttpRequest(url,url,true);
#if __EMSCRIPTEN_major__>1 || (__EMSCRIPTEN_major__==1 && __EMSCRIPTEN_minor__>22)
emscripten_async_wget2(url.c_str(), path.c_str(), "GET", "", req, &onload_file_cb, &onerror_file_cb, NULL);
Expand Down
8 changes: 4 additions & 4 deletions addons/ofxEmscripten/src/ofxEmscriptenURLFileLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class ofxEmscriptenURLFileLoader: public ofBaseURLFileLoader {
public:
ofxEmscriptenURLFileLoader();
virtual ~ofxEmscriptenURLFileLoader();
ofHttpResponse get(const std::string & url);
int getAsync(const std::string & url, const std::string & name=""); // returns id
ofHttpResponse saveTo(const std::string & url, const std::filesystem::path & path);
int saveAsync(const std::string & url, const std::filesystem::path & path);
ofHttpResponse get(const std::string & url);
int getAsync(const std::string & url, const std::string & name=""); // returns id
ofHttpResponse saveTo(const std::string & url, const of::filesystem::path & path);
int saveAsync(const std::string & url, const of::filesystem::path & path);
ofHttpResponse handleRequest(const ofHttpRequest & request);
int handleRequestAsync(const ofHttpRequest & request);
void remove(int id);
Expand Down
1 change: 1 addition & 0 deletions addons/ofxOpenCv/src/ofxCvHaarFinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ void ofxCvHaarFinder::setNeighbors(unsigned neighbors) {
this->neighbors = neighbors;
}

// FIXME: convert to of::filesystem::path
void ofxCvHaarFinder::setup(std::string haarFile) {

this->haarFile = haarFile;
Expand Down
8 changes: 4 additions & 4 deletions addons/ofxPoco/src/ofxXmlPoco.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ ofxXmlPoco::ofxXmlPoco(){
}


bool ofxXmlPoco::load(const std::filesystem::path & path){
ofFile file(path, ofFile::ReadOnly);
bool ofxXmlPoco::load(const of::filesystem::path & filePath){
ofFile file(filePath, ofFile::ReadOnly);
if(!file.exists()){
ofLogError("ofxXmlPoco") << "couldn't load, \"" << file.getFileName() << "\" not found";
return false;
Expand All @@ -53,10 +53,10 @@ bool ofxXmlPoco::load(const std::filesystem::path & path){
}


bool ofxXmlPoco::save(const std::filesystem::path & path){
bool ofxXmlPoco::save(const of::filesystem::path & filePath){
ofBuffer buffer;
buffer.set(toString());
ofFile file(path, ofFile::WriteOnly);
ofFile file(filePath, ofFile::WriteOnly);
return file.writeFromBuffer(buffer);
}

Expand Down
4 changes: 2 additions & 2 deletions addons/ofxPoco/src/ofxXmlPoco.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class ofxXmlPoco{
ofxXmlPoco( const ofxXmlPoco& rhs );
const ofxXmlPoco& operator =( const ofxXmlPoco& rhs );

bool load(const std::filesystem::path & path);
bool save(const std::filesystem::path & path);
bool load(const of::filesystem::path & filePath);
bool save(const of::filesystem::path & filePath);

bool addChild( const std::string& path );
void addXml( ofxXmlPoco& xml, bool copyAll = false);
Expand Down
29 changes: 21 additions & 8 deletions addons/ofxSvg/src/ofxSvg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#include "ofConstants.h"
#include <locale>

using namespace std;
using std::string;
using std::vector;

extern "C"{
#include "svgtiny.h"
Expand All @@ -26,18 +27,30 @@ ofPath & ofxSvg::getPathAt(int n){
return paths[n];
}

void ofxSvg::load(std::string path){
path = ofToDataPath(path);
void ofxSvg::load(of::filesystem::path fileName){
// fileName = ofToDataPath(fileName);
std::string file = ofToDataPath(fileName);

if(path.compare("") == 0){
ofLogError("ofxSVG") << "load(): path does not exist: \"" << path << "\"";
// FIXME: I think this is the equivalent of .empty() which is simpler.
// maybe use file exists to check instead?
// if(fileName.compare("") == 0){
// ofLogError("ofxSVG") << "load(): path does not exist: \"" << fileName << "\"";
// return;
// }

// ofBuffer buffer = ofBufferFromFile(fileName);

// loadFromString(buffer.getText(), fileName);

if(file.compare("") == 0){
ofLogError("ofxSVG") << "load(): path does not exist: \"" << file << "\"";
return;
}

ofBuffer buffer = ofBufferFromFile(path);

loadFromString(buffer.getText(), path);
ofBuffer buffer = ofBufferFromFile(file);

loadFromString(buffer.getText(), file);

}

void ofxSvg::loadFromString(std::string stringdata, std::string urlstring){
Expand Down
2 changes: 1 addition & 1 deletion addons/ofxSvg/src/ofxSvg.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ofxSvg {
/// \brief Loads an SVG file from the provided filename.
///
/// ~~~~
void load(std::string path);
void load(of::filesystem::path fileName);

/// \brief Loads an SVG from a text string.
///
Expand Down
4 changes: 2 additions & 2 deletions addons/ofxUnitTests/src/ofxUnitTests.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ class ofxUnitTestsApp: public ofBaseApp{
const std::string APPVEYOR_API_URL = "APPVEYOR_API_URL";
if(ofGetEnv(APPVEYOR_API_URL)!=""){
//ofSystem("appveyor AddTest -Name " + projectName.string() + " -Framework ofxUnitTests -FileName " + exeName.string() + " -Outcome " + (passed?"Passed":"Failed") + " -Duration " + ofToString(now-then));
auto projectDir = std::filesystem::canonical(std::filesystem::path(ofFilePath::getCurrentExeDir()) / "..");
auto projectDir = of::filesystem::canonical(of::filesystem::path(ofFilePath::getCurrentExeDir()) / "..");
auto projectName = projectDir.stem();
auto exeName = std::filesystem::path(ofFilePath::getCurrentExePath()).filename();
auto exeName = of::filesystem::path(ofFilePath::getCurrentExePath()).filename();
auto stdOut = logger->getStdOut();
ofStringReplace(stdOut, "\\", "\\\\");
ofStringReplace(stdOut, "\"", "\\\"");
Expand Down
8 changes: 4 additions & 4 deletions addons/ofxXmlSettings/src/ofxXmlSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ void ofxXmlSettings::clear(){

//---------------------------------------------------------
bool ofxXmlSettings::load(const string& xmlFile){
string fullXmlFile = ofToDataPath(xmlFile);
bool loadOkay = doc.LoadFile(fullXmlFile);
auto fullXmlFile = ofToDataPath(xmlFile);
bool loadOkay = doc.LoadFile(fullXmlFile.c_str());

//theo removed bool check as it would
//return false if the file exists but was
Expand All @@ -88,8 +88,8 @@ bool ofxXmlSettings::load(const string& xmlFile){

//---------------------------------------------------------
bool ofxXmlSettings::save(const string& xmlFile){
string fullXmlFile = ofToDataPath(xmlFile);
return doc.SaveFile(fullXmlFile);
auto fullXmlFile = ofToDataPath(xmlFile);
return doc.SaveFile(fullXmlFile.c_str());
}

//---------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion addons/ofxXmlSettings/src/ofxXmlSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "tinyxml.h"
#endif

using namespace std;

/*
Q: what is the which = 0 argument?
Expand Down
2 changes: 1 addition & 1 deletion addons/ofxiOS/src/core/ofxiOSAppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ - (void)applicationDidFinishLaunching:(UIApplication *)application {
currentScreenIndex = 0;

// set the root application path
ofSetDataPathRoot([[NSString stringWithFormat:@"%@/", [[NSBundle mainBundle] resourcePath]] cStringUsingEncoding:NSUTF8StringEncoding]);
ofSetDataPathRoot(of::filesystem::path([[NSString stringWithFormat:@"%@/", [[NSBundle mainBundle] resourcePath]] cStringUsingEncoding:NSUTF8StringEncoding]));

// show or hide status bar depending on OF_WINDOW or OF_FULLSCREEN
[[UIApplication sharedApplication] setStatusBarHidden:(ofxiOSGetOFWindow()->getWindowMode() == OF_FULLSCREEN)];
Expand Down
2 changes: 1 addition & 1 deletion addons/ofxiOS/src/sound/ofxOpenALSoundPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ofxOpenALSoundPlayer::~ofxOpenALSoundPlayer() {

//--------------------------------------------------------------

bool ofxOpenALSoundPlayer::load(const std::filesystem::path& filePath, bool stream) {
bool ofxOpenALSoundPlayer::load(const of::filesystem::path& filePath, bool stream) {

if(!SoundEngineInitialized) {
ofxOpenALSoundPlayer::initializeSoundEngine();
Expand Down
2 changes: 1 addition & 1 deletion addons/ofxiOS/src/sound/ofxOpenALSoundPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ofxOpenALSoundPlayer : public ofBaseSoundPlayer{
ofxOpenALSoundPlayer();
~ofxOpenALSoundPlayer();

bool load(const std::filesystem::path& fileName, bool stream=false);
bool load(const of::filesystem::path& fileName, bool stream=false);
void unload();

void play();
Expand Down
2 changes: 1 addition & 1 deletion addons/ofxiOS/src/sound/ofxiOSSoundPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ofxiOSSoundPlayer : public ofBaseSoundPlayer {
ofxiOSSoundPlayer();
~ofxiOSSoundPlayer();

bool load(const std::filesystem::path& fileName, bool stream = false);
bool load(const of::filesystem::path& fileName, bool stream = false);
void unload();
void play();
void stop();
Expand Down
2 changes: 1 addition & 1 deletion addons/ofxiOS/src/sound/ofxiOSSoundPlayer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
unload();
}

bool ofxiOSSoundPlayer::load(const std::filesystem::path& fileName, bool stream) {
bool ofxiOSSoundPlayer::load(const of::filesystem::path& fileName, bool stream) {
if(soundPlayer != NULL) {
unload();
}
Expand Down
4 changes: 2 additions & 2 deletions libs/openFrameworks/3d/ofMesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ class ofMesh_{
///
/// It expects that the file will be in the [PLY Format](http://en.wikipedia.org/wiki/PLY_(file_format)).
/// It will only load meshes saved in the PLY ASCII format; the binary format is not supported.
void load(const std::filesystem::path& path);
void load(const of::filesystem::path& path);

/// \brief Saves the mesh at the passed path in the [PLY Format](http://en.wikipedia.org/wiki/PLY_(file_format)).
///
Expand All @@ -615,7 +615,7 @@ class ofMesh_{
/// If you're planning on reloading the mesh into ofMesh, ofMesh currently only supports loading the ASCII format.
///
/// For more information, see the [PLY format specification](http://paulbourke.net/dataformats/ply/).
void save(const std::filesystem::path& path, bool useBinary = false) const;
void save(const of::filesystem::path& path, bool useBinary = false) const;

/// \}

Expand Down
7 changes: 3 additions & 4 deletions libs/openFrameworks/3d/ofMesh.inl
Original file line number Diff line number Diff line change
Expand Up @@ -1086,11 +1086,10 @@ void ofMesh_<V,N,C,T>::append(const ofMesh_<V,N,C,T> & mesh){

//--------------------------------------------------------------
template<class V, class N, class C, class T>
void ofMesh_<V,N,C,T>::load(const std::filesystem::path& path){
ofFile is(path, ofFile::ReadOnly);
void ofMesh_<V,N,C,T>::load(const of::filesystem::path& path){
ofFile is = {path, ofFile::ReadOnly};
auto & data = *this;


std::string error;
ofBuffer buffer(is);
auto backup = data;
Expand Down Expand Up @@ -1327,7 +1326,7 @@ void ofMesh_<V,N,C,T>::load(const std::filesystem::path& path){

//--------------------------------------------------------------
template<class V, class N, class C, class T>
void ofMesh_<V,N,C,T>::save(const std::filesystem::path& path, bool useBinary) const{
void ofMesh_<V,N,C,T>::save(const of::filesystem::path& path, bool useBinary) const{
ofFile os(path, ofFile::WriteOnly);
const auto & data = *this;

Expand Down
Loading