diff --git a/src/configep2.cpp b/src/configep2.cpp index 496b673..9701403 100644 --- a/src/configep2.cpp +++ b/src/configep2.cpp @@ -128,12 +128,13 @@ void Config::parse(MemoryRandomAccess& ram, Memory& rom, Slots& slts, int& revis user_config = wxT("epple2"); } user_config += ".conf"; + const std::filesystem::path user_path{user_config.fn_str().data()}; - path = wxGetApp().GetConfigDir() / user_config.fn_str().data(); + path = wxGetApp().GetConfigDir() / user_path; std::cout << "looking for config file: " << path << std::endl; pConfig = new std::ifstream(path.c_str()); if (!pConfig->is_open()) { - path = wxGetApp().GetResDir() / user_config.fn_str().data(); + path = wxGetApp().GetResDir() / user_path; std::cout << "looking for config file: " << path << std::endl; pConfig = new std::ifstream(path.c_str()); if (!pConfig->is_open()) { diff --git a/src/wozfile.h b/src/wozfile.h index 631e3d8..19f7944 100644 --- a/src/wozfile.h +++ b/src/wozfile.h @@ -20,6 +20,7 @@ #ifndef WOZFILE_H #define WOZFILE_H +#include #include #include @@ -45,7 +46,7 @@ static const std::uint8_t C_QTRACK(160); * rather, that information is known by the stepper motor and arm. */ class WozFile { - std::string filePath; + std::filesystem::path filePath; bool loaded; bool modified;