forked from StrafesNET/asset-tool
I think this is better
This commit is contained in:
parent
cef0f38482
commit
a9a40cd2f0
@ -817,7 +817,7 @@ async fn decompile_history_into_git(config:DecompileHistoryConfig)->AResult<()>{
|
|||||||
futures::stream::iter(asset_list.into_iter()
|
futures::stream::iter(asset_list.into_iter()
|
||||||
.map(|asset_version|{
|
.map(|asset_version|{
|
||||||
let mut file_path=config.input_folder.clone();
|
let mut file_path=config.input_folder.clone();
|
||||||
tokio::task::spawn(async move{
|
tokio::task::spawn_blocking(move||{
|
||||||
file_path.push(format!("{}_v{}.rbxl",asset_version.assetId,asset_version.assetVersionNumber));
|
file_path.push(format!("{}_v{}.rbxl",asset_version.assetId,asset_version.assetVersionNumber));
|
||||||
let file=std::fs::File::open(file_path)?;
|
let file=std::fs::File::open(file_path)?;
|
||||||
let contents=generate_decompiled_context(file)?;
|
let contents=generate_decompiled_context(file)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user