diff --git a/src/raspberrypi/rascsi.cpp b/src/raspberrypi/rascsi.cpp index a9515b8c..b51feaa8 100644 --- a/src/raspberrypi/rascsi.cpp +++ b/src/raspberrypi/rascsi.cpp @@ -35,6 +35,7 @@ #include #include #include +#include using namespace std; using namespace spdlog; @@ -469,6 +470,16 @@ void LogDeviceList(const string& device_list) } } +set GetAvailableImages() { + set available_images; + + for (const auto & entry : filesystem::directory_iterator(default_image_folder)) { + available_images.insert(entry.path()); + } + + return available_images; +} + //--------------------------------------------------------------------------- // // Command Processing