From dde4bd09a7cc5345b4a14ca65f18c57e7daca86c Mon Sep 17 00:00:00 2001 From: "Christopher A. Mosher" Date: Sun, 11 Dec 2022 22:27:37 -0500 Subject: [PATCH] fix path reference --- src/drive.cpp | 3 ++- src/drive.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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();