addressing windows issues

This commit is contained in:
2025-11-30 23:22:39 -05:00
parent 63c170adbb
commit f6a5c01d74
4 changed files with 15 additions and 11 deletions

View File

@@ -56,5 +56,10 @@ namespace anm2ed::util::filesystem
std::filesystem::current_path(path);
}
WorkingDirectory::WorkingDirectory(const std::filesystem::path& path, bool isFile)
: WorkingDirectory(path.string(), isFile)
{
}
WorkingDirectory::~WorkingDirectory() { std::filesystem::current_path(previous); }
}

View File

@@ -18,6 +18,7 @@ namespace anm2ed::util::filesystem
std::filesystem::path previous;
WorkingDirectory(const std::string&, bool = false);
WorkingDirectory(const std::filesystem::path&, bool = false);
~WorkingDirectory();
};
}