diff --git a/examples/opengl/OpenGL.cpp b/examples/opengl/OpenGL.cpp index a53570c23..78d339d38 100644 --- a/examples/opengl/OpenGL.cpp +++ b/examples/opengl/OpenGL.cpp @@ -22,7 +22,7 @@ std::filesystem::path resourcesDir() #ifdef SFML_SYSTEM_IOS return ""; #else - return "resources/"; + return "resources"; #endif } diff --git a/examples/sound/Sound.cpp b/examples/sound/Sound.cpp index 71a4a11b5..67401cc82 100644 --- a/examples/sound/Sound.cpp +++ b/examples/sound/Sound.cpp @@ -46,11 +46,11 @@ void playSound() /// Play a music /// //////////////////////////////////////////////////////////// -void playMusic(const std::string& filename) +void playMusic(const std::filesystem::path& filename) { // Load an ogg music file sf::Music music; - if (!music.openFromFile("resources/" + filename)) + if (!music.openFromFile("resources" / filename)) return; // Display music informations diff --git a/examples/tennis/Tennis.cpp b/examples/tennis/Tennis.cpp index 1906ce2e7..1bce9c31a 100644 --- a/examples/tennis/Tennis.cpp +++ b/examples/tennis/Tennis.cpp @@ -17,7 +17,7 @@ std::filesystem::path resourcesDir() #ifdef SFML_SYSTEM_IOS return ""; #else - return "resources/"; + return "resources"; #endif }