From 4799b1602c31459c54d7d27ac77266c0c10e09e7 Mon Sep 17 00:00:00 2001 From: agibert Date: Mon, 26 Oct 2009 01:35:08 +0000 Subject: [PATCH] - Fix Rx3 archive renaming bug... --- nds2rm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/nds2rm b/nds2rm index 411c4e7..c2b0b51 100644 --- a/nds2rm +++ b/nds2rm @@ -5,9 +5,9 @@ # (C) 2009 Arnaud G. Gibert #----------------------------------------------------------------------------------------------------------------------------------- # $RCSfile: nds2rm,v $ -# $Revision: 1.19 $ +# $Revision: 1.20 $ # $Name: $ -# $Date: 2009/05/09 21:30:53 $ +# $Date: 2009/10/26 01:35:08 $ # $Author: agibert $ #----------------------------------------------------------------------------------------------------------------------------------- @@ -1000,13 +1000,13 @@ function arc_proceed() crc=${dat_crc[${idx}]} status2="OK" - # Rename the ROM file - rom2="${id} - ${title} (${reg}=${lang}) [${status2}].nds" + # Extract ROM file if not yet done + if [[ "${rom}" == "" ]] + then + rom="${id} - ${title} (${reg}=${lang}).nds" - print_verbose "moving ${rom} to ${rom2}" - - mv "${rom}" "${rom2}" - rom=${rom2} + rom_extract "${rom}" "${file}" + fi if [[ "${arc_type}" == "rx3" ]] then @@ -1030,7 +1030,7 @@ function arc_proceed() # Rename ROM if needed - if [[ ( "${renumed}" != "yes") && ( ( "${arc_type}" != "rx3" ) || ( "${rebuild}" == "yes" ) ) ]] + if [[ ( "${renumed}" == "yes") || ( "${arc_type}" != "rx3" ) || ( "${rebuild}" == "yes" ) ]] then rom2="${id} - ${title} (${reg}=${lang}) [${status}].nds" @@ -1050,7 +1050,7 @@ function arc_proceed() # Make / Rename Archive - if [[ ( "${arc_type}" != "rx3" ) || ( ${rebuild} == "yes" ) ]] + if [[ ( "${renumed}" == "yes") || ( "${arc_type}" != "rx3" ) || ( ${rebuild} == "yes" ) ]] then arc_build "${file_name}" "${rom}" "${file}" "${mode}" "${idx}" else