Skip to content

Commit 38cd021

Browse files
committed
replaced 'filesystem' use with Poco
1 parent b6deecd commit 38cd021

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: src/RenderLoop.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212

1313
#include "ProjectMSDLApplication.h"
1414

15-
#include <filesystem>
16-
namespace fs = std::filesystem;
17-
1815
RenderLoop::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);

0 commit comments

Comments
 (0)