Try to fix saving plugins with "\\" in path

This commit is contained in:
2022-09-05 18:47:43 -04:00
parent e531386095
commit fe908799d7
3 changed files with 5 additions and 4 deletions

View File

@@ -95,7 +95,8 @@ pub async fn extract_with_compress_tools(
let (file_path, mut plugin_buf) = plugin?;
let plugin_span = info_span!("plugin", name = ?file_path);
let _plugin_span = plugin_span.enter();
process_plugin(&mut plugin_buf, &pool, &db_file, &db_mod, &file_path, game_name).await?;
let safe_file_path = file_path.replace("\\", "/");
process_plugin(&mut plugin_buf, &pool, &db_file, &db_mod, &safe_file_path, game_name).await?;
}
Ok(())
}