fix path reference

This commit is contained in:
Christopher A. Mosher 2022-12-11 22:27:37 -05:00
parent 46582c6566
commit dde4bd09a7
2 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#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);
}

View File

@ -18,6 +18,7 @@
#ifndef DRIVE_H
#define DRIVE_H
#include <filesystem>
#include <random>
#include <chrono>
#include <string>
@ -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();