@@ -1734,6 +1734,15 @@ async fn to_chd(
1734
1734
chd_romfile. as_common ( ) ?. delete ( progress_bar, false ) . await ?;
1735
1735
continue ;
1736
1736
} else {
1737
+ if diff {
1738
+ print_diff (
1739
+ progress_bar,
1740
+ & roms. iter ( ) . collect :: < Vec < & Rom > > ( ) ,
1741
+ & [ & romfile. path ] ,
1742
+ & [ & chd_romfile. path ] ,
1743
+ )
1744
+ . await ?;
1745
+ }
1737
1746
romfile. as_common ( ) ?. delete ( progress_bar, false ) . await ?;
1738
1747
chd_romfile
1739
1748
. as_common ( ) ?
@@ -1798,6 +1807,15 @@ async fn to_chd(
1798
1807
chd_romfile. as_common ( ) ?. delete ( progress_bar, false ) . await ?;
1799
1808
continue ;
1800
1809
} else {
1810
+ if diff {
1811
+ print_diff (
1812
+ progress_bar,
1813
+ & roms. iter ( ) . collect :: < Vec < & Rom > > ( ) ,
1814
+ & [ & romfile. path ] ,
1815
+ & [ & chd_romfile. path ] ,
1816
+ )
1817
+ . await ?;
1818
+ }
1801
1819
romfile. as_common ( ) ?. delete ( progress_bar, false ) . await ?;
1802
1820
chd_romfile
1803
1821
. as_common ( ) ?
@@ -2134,6 +2152,15 @@ async fn to_cso(
2134
2152
cso_romfile. as_common ( ) ?. delete ( progress_bar, false ) . await ?;
2135
2153
continue ;
2136
2154
} else {
2155
+ if diff {
2156
+ print_diff (
2157
+ progress_bar,
2158
+ & roms. iter ( ) . collect :: < Vec < & Rom > > ( ) ,
2159
+ & [ & romfile. path ] ,
2160
+ & [ & cso_romfile. path ] ,
2161
+ )
2162
+ . await ?;
2163
+ }
2137
2164
romfile. as_common ( ) ?. delete ( progress_bar, false ) . await ?;
2138
2165
cso_romfile
2139
2166
. as_common ( ) ?
@@ -2340,6 +2367,15 @@ async fn to_nsz(
2340
2367
nsz_romfile. as_common ( ) ?. delete ( progress_bar, false ) . await ?;
2341
2368
continue ;
2342
2369
} else {
2370
+ if diff {
2371
+ print_diff (
2372
+ progress_bar,
2373
+ & roms. iter ( ) . collect :: < Vec < & Rom > > ( ) ,
2374
+ & [ & romfile. path ] ,
2375
+ & [ & nsz_romfile. path ] ,
2376
+ )
2377
+ . await ?;
2378
+ }
2343
2379
romfile. as_common ( ) ?. delete ( progress_bar, false ) . await ?;
2344
2380
nsz_romfile
2345
2381
. as_common ( ) ?
@@ -2567,6 +2603,15 @@ async fn to_rvz(
2567
2603
rvz_romfile. as_common ( ) ?. delete ( progress_bar, false ) . await ?;
2568
2604
continue ;
2569
2605
} else {
2606
+ if diff {
2607
+ print_diff (
2608
+ progress_bar,
2609
+ & roms. iter ( ) . collect :: < Vec < & Rom > > ( ) ,
2610
+ & [ & romfile. path ] ,
2611
+ & [ & rvz_romfile. path ] ,
2612
+ )
2613
+ . await ?;
2614
+ }
2570
2615
romfile. as_common ( ) ?. delete ( progress_bar, false ) . await ?;
2571
2616
rvz_romfile
2572
2617
. as_common ( ) ?
@@ -2903,6 +2948,15 @@ async fn to_zso(
2903
2948
zso_romfile. as_common ( ) ?. delete ( progress_bar, false ) . await ?;
2904
2949
continue ;
2905
2950
} else {
2951
+ if diff {
2952
+ print_diff (
2953
+ progress_bar,
2954
+ & roms. iter ( ) . collect :: < Vec < & Rom > > ( ) ,
2955
+ & [ & romfile. path ] ,
2956
+ & [ & zso_romfile. path ] ,
2957
+ )
2958
+ . await ?;
2959
+ }
2906
2960
romfile. as_common ( ) ?. delete ( progress_bar, false ) . await ?;
2907
2961
zso_romfile
2908
2962
. as_common ( ) ?
0 commit comments