fix path reference
This commit is contained in:
parent
46582c6566
commit
dde4bd09a7
|
@ -16,6 +16,7 @@
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#include "drive.h"
|
#include "drive.h"
|
||||||
|
|
||||||
Disk2Drive::Disk2Drive(double p_random_ones_rate):
|
Disk2Drive::Disk2Drive(double p_random_ones_rate):
|
||||||
stepper(head),
|
stepper(head),
|
||||||
pulse(false),
|
pulse(false),
|
||||||
|
@ -25,7 +26,7 @@ Disk2Drive::Disk2Drive(double p_random_ones_rate):
|
||||||
distribution(0.0,1.0) {
|
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);
|
return this->disk.load(fnib);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#ifndef DRIVE_H
|
#ifndef DRIVE_H
|
||||||
#define DRIVE_H
|
#define DRIVE_H
|
||||||
|
|
||||||
|
#include <filesystem>
|
||||||
#include <random>
|
#include <random>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
@ -48,7 +49,7 @@ private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Disk2Drive(double p_random_ones_rate);
|
Disk2Drive(double p_random_ones_rate);
|
||||||
bool loadDisk(const std::string& fnib);
|
bool loadDisk(const std::filesystem::path& fnib);
|
||||||
void unloadDisk();
|
void unloadDisk();
|
||||||
bool isLoaded() const;
|
bool isLoaded() const;
|
||||||
void saveDisk();
|
void saveDisk();
|
||||||
|
|
Loading…
Reference in New Issue