Use .string() before passing path to nowide::ofstream ??? is this even the right thing to do omg fuck windows and its wide encoding bs

This commit is contained in:
Stepland 2022-12-27 14:26:59 +01:00
parent ade7544a85
commit a8842a8efa

View File

@ -1553,7 +1553,7 @@ TimingOrigin EditorState::timing_origin() {
void EditorState::save(const std::filesystem::path& path) {
const auto memon = song.dump_to_memon_1_0_0();
nowide::ofstream file{path};
nowide::ofstream file{path.string()};
if (not file) {
throw std::runtime_error(
fmt::format("Cannot write to file {}", path.string())