File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 12
12
13
13
#include " ProjectMSDLApplication.h"
14
14
15
- #include < filesystem>
16
- namespace fs = std::filesystem;
17
-
18
15
RenderLoop::RenderLoop ()
19
16
: _audioCapture(Poco::Util::Application::instance().getSubsystem<AudioCapture>())
20
17
, _projectMWrapper(Poco::Util::Application::instance().getSubsystem<ProjectMWrapper>())
@@ -129,10 +126,11 @@ void RenderLoop::PollEvents()
129
126
int index = projectm_playlist_get_position (_playlistHandle) + 1 ;
130
127
131
128
do {
132
- if (!fs::is_directory (droppedFilePath)) {
129
+ Poco::File droppedFile (droppedFilePath);
130
+ if (!droppedFile.isDirectory ()) {
133
131
// handle dropped preset file
134
132
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" )) {
136
134
std::string toastMessage = std::string (" Invalid preset file: " ) + droppedFilePath;
137
135
Poco::NotificationCenter::defaultCenter ().postNotification (new DisplayToastNotification (toastMessage));
138
136
poco_information_f1 (_logger, " %s" , toastMessage);
You can’t perform that action at this time.
0 commit comments