diff --git a/src/drive.cpp b/src/drive.cpp index b039662..ddd8a07 100644 --- a/src/drive.cpp +++ b/src/drive.cpp @@ -16,6 +16,7 @@ along with this program. If not, see . */ #include "drive.h" + Disk2Drive::Disk2Drive(double p_random_ones_rate): stepper(head), pulse(false), @@ -25,7 +26,7 @@ Disk2Drive::Disk2Drive(double p_random_ones_rate): distribution(0.0,1.0) { } -bool Disk2Drive::loadDisk(const std::string& fnib) { +bool Disk2Drive::loadDisk(const std::filesystem::path& fnib) { return this->disk.load(fnib); } diff --git a/src/drive.h b/src/drive.h index a0526eb..62dcf17 100644 --- a/src/drive.h +++ b/src/drive.h @@ -18,6 +18,7 @@ #ifndef DRIVE_H #define DRIVE_H +#include #include #include #include @@ -48,7 +49,7 @@ private: public: Disk2Drive(double p_random_ones_rate); - bool loadDisk(const std::string& fnib); + bool loadDisk(const std::filesystem::path& fnib); void unloadDisk(); bool isLoaded() const; void saveDisk();