@@ -871,6 +871,14 @@ pub fn run(sub: Subcommand, no_manifest_update: bool, try_manifest_update: bool)
871
871
name_source,
872
872
force,
873
873
gui,
874
+ path,
875
+ format,
876
+ compression,
877
+ compression_level,
878
+ full_limit,
879
+ differential_limit,
880
+ cloud_sync,
881
+ no_cloud_sync,
874
882
commands,
875
883
} => {
876
884
let manifest = load_manifest ( & config, & mut cache, no_manifest_update, try_manifest_update) ?;
@@ -959,20 +967,20 @@ pub fn run(sub: Subcommand, no_manifest_update: bool, try_manifest_update: bool)
959
967
Subcommand :: Restore {
960
968
games : vec ! [ game_name. clone( ) ] ,
961
969
force : true ,
962
- preview : Default :: default ( ) ,
963
- path : Default :: default ( ) ,
970
+ preview,
971
+ path : path . clone ( ) ,
964
972
api : Default :: default ( ) ,
965
973
gui : Default :: default ( ) ,
966
974
sort : Default :: default ( ) ,
967
975
backup : Default :: default ( ) ,
968
- cloud_sync : Default :: default ( ) ,
969
- no_cloud_sync : Default :: default ( ) ,
976
+ cloud_sync,
977
+ no_cloud_sync,
970
978
dump_registry : Default :: default ( ) ,
971
979
} ,
972
980
no_manifest_update,
973
981
try_manifest_update,
974
982
) {
975
- log:: error!( "WRAP::restore: failed for game {:?} with: {:?}" , wrap_game_info, err) ;
983
+ log:: error!( "Wrap failed to restore game {:?} with: {:?}" , wrap_game_info, err) ;
976
984
ui:: alert_with_error ( gui, force, & TRANSLATOR . restore_one_game_failed ( game_name) , & err) ?;
977
985
return Err ( err) ;
978
986
}
@@ -983,10 +991,10 @@ pub fn run(sub: Subcommand, no_manifest_update: bool, try_manifest_update: bool)
983
991
let result = Command :: new ( & commands[ 0 ] ) . args ( & commands[ 1 ..] ) . status ( ) ;
984
992
match result {
985
993
Ok ( status) => {
986
- log:: debug!( "WRAP::execute: Game command executed, returning status: {:#?}" , status) ;
994
+ log:: debug!( "Wrapped game command executed, returning status: {:#?}" , status) ;
987
995
}
988
996
Err ( err) => {
989
- log:: error!( "WRAP::execute: Game command execution failed with: {:#?}" , err) ;
997
+ log:: error!( "Wrapped game command execution failed with: {:#?}" , err) ;
990
998
ui:: alert_with_raw_error ( gui, force, & TRANSLATOR . game_did_not_launch ( ) , & err. to_string ( ) ) ?;
991
999
return Err ( Error :: GameDidNotLaunch { why : err. to_string ( ) } ) ;
992
1000
}
@@ -1006,25 +1014,25 @@ pub fn run(sub: Subcommand, no_manifest_update: bool, try_manifest_update: bool)
1006
1014
Subcommand :: Backup {
1007
1015
games : vec ! [ game_name. clone( ) ] ,
1008
1016
force : true ,
1009
- preview : Default :: default ( ) ,
1010
- path : Default :: default ( ) ,
1017
+ preview,
1018
+ path,
1011
1019
wine_prefix : Default :: default ( ) ,
1012
1020
api : Default :: default ( ) ,
1013
1021
gui : Default :: default ( ) ,
1014
1022
sort : Default :: default ( ) ,
1015
- format : Default :: default ( ) ,
1016
- compression : Default :: default ( ) ,
1017
- compression_level : Default :: default ( ) ,
1018
- full_limit : Default :: default ( ) ,
1019
- differential_limit : Default :: default ( ) ,
1020
- cloud_sync : Default :: default ( ) ,
1021
- no_cloud_sync : Default :: default ( ) ,
1023
+ format,
1024
+ compression,
1025
+ compression_level,
1026
+ full_limit,
1027
+ differential_limit,
1028
+ cloud_sync,
1029
+ no_cloud_sync,
1022
1030
dump_registry : Default :: default ( ) ,
1023
1031
} ,
1024
1032
no_manifest_update,
1025
1033
try_manifest_update,
1026
1034
) {
1027
- log:: error!( "WRAP::backup: failed with: {:#?}" , err) ;
1035
+ log:: error!( "Wrap failed to back up with: {:#?}" , err) ;
1028
1036
ui:: alert_with_error ( gui, force, & TRANSLATOR . back_up_one_game_failed ( game_name) , & err) ?;
1029
1037
return Err ( err) ;
1030
1038
}
0 commit comments