File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1212
1313#include " ProjectMSDLApplication.h"
1414
15- #include < filesystem>
16- namespace fs = std::filesystem;
17-
1815RenderLoop::RenderLoop ()
1916 : _audioCapture(Poco::Util::Application::instance().getSubsystem<AudioCapture>())
2017 , _projectMWrapper(Poco::Util::Application::instance().getSubsystem<ProjectMWrapper>())
@@ -129,10 +126,11 @@ void RenderLoop::PollEvents()
129126 int index = projectm_playlist_get_position (_playlistHandle) + 1 ;
130127
131128 do {
132- if (!fs::is_directory (droppedFilePath)) {
129+ Poco::File droppedFile (droppedFilePath);
130+ if (!droppedFile.isDirectory ()) {
133131 // handle dropped preset file
134132 Poco::Path droppedFileP (droppedFilePath);
135- if (!fs:: exists (droppedFilePath ) || (droppedFileP.getExtension () != " milk" && droppedFileP.getExtension () != " prjm" )) {
133+ if (!droppedFile. exists () || (droppedFileP.getExtension () != " milk" && droppedFileP.getExtension () != " prjm" )) {
136134 std::string toastMessage = std::string (" Invalid preset file: " ) + droppedFilePath;
137135 Poco::NotificationCenter::defaultCenter ().postNotification (new DisplayToastNotification (toastMessage));
138136 poco_information_f1 (_logger, " %s" , toastMessage);
You can’t perform that action at this time.
0 commit comments