Fixed windows build

This commit is contained in:
Yousef Khadadeh 2026-04-11 11:17:26 +03:00
parent f78db24f49
commit da1a1c26cb
7 changed files with 11 additions and 11 deletions

View file

@ -70,7 +70,7 @@ void ImageEditTool::edit_gui() {
);
#endif
t.open_file_selector("Download File", {{"Any File", "*"}}, [resourceData](const std::filesystem::path& p, const auto& e) {
SDL_SaveFile(p.c_str(), resourceData->data->c_str(), resourceData->data->size());
SDL_SaveFile(p.string().c_str(), resourceData->data->c_str(), resourceData->data->size());
}, resourceData->name, true);
}
});