try fix msvc

This commit is contained in:
Green Sky 2023-12-02 03:26:01 +01:00
parent 3f519cbcfc
commit 0e27cf4476
No known key found for this signature in database

View File

@ -144,7 +144,7 @@ int main(int argc, char** argv) {
// default to totato.tox relative to config file // default to totato.tox relative to config file
conf.set("tox", "save_file_path", (config_path_base / "totato.tox").u8string()); conf.set("tox", "save_file_path", (config_path_base / "totato.tox").u8string());
} else { // transform relative to config to absolute } else { // transform relative to config to absolute
const auto tox_conf_path = std::filesystem::path{conf.get_string("tox", "save_file_path").value()}; const auto tox_conf_path = std::filesystem::path{static_cast<std::string_view>(conf.get_string("tox", "save_file_path").value())};
if (tox_conf_path.is_relative()) { if (tox_conf_path.is_relative()) {
// is relative to config // is relative to config
conf.set("tox", "save_file_path", std::filesystem::canonical(config_path_base / tox_conf_path).u8string()); conf.set("tox", "save_file_path", std::filesystem::canonical(config_path_base / tox_conf_path).u8string());