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/>.
|
||||
*/
|
||||
#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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue