File tree Expand file tree Collapse file tree
src-tauri/src/minecraft/launcher Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 */
1919
2020use std:: collections:: HashSet ;
21- use std:: path:: Path ;
21+ use std:: fs;
22+ use std:: path:: { Path , PathBuf } ;
2223
2324use std:: process:: exit;
2425
@@ -375,16 +376,16 @@ fn setup_vanilla_integration<D: Send + Sync>(
375376
376377 launcher_data. log ( & format ! ( "Linked vanilla {} folder" , folder) ) ;
377378 } else if !enabled && target. is_symlink ( ) {
378- std :: fs:: remove_file ( & target) . ok ( ) ;
379- std :: fs:: create_dir_all ( & target) ?;
379+ fs:: remove_file ( & target) . ok ( ) ;
380+ fs:: create_dir_all ( & target) ?;
380381 launcher_data. log ( & format ! ( "Unlinked vanilla {} folder" , folder) ) ;
381382 }
382383 }
383384
384385 Ok ( ( ) )
385386}
386387
387- fn get_vanilla_minecraft_dir ( ) -> Option < std :: path :: PathBuf > {
388+ fn get_vanilla_minecraft_dir ( ) -> Option < PathBuf > {
388389 #[ cfg( target_os = "windows" ) ]
389390 {
390391 dirs:: data_dir ( ) . map ( |p| p. join ( ".minecraft" ) )
You can’t perform that action at this time.
0 commit comments