From 0445022bd8cf8a18f14f06489133417ec95eae8d Mon Sep 17 00:00:00 2001 From: agibert Date: Sat, 9 May 2009 21:30:53 +0000 Subject: [PATCH] - Add support for non sorted dsrom.xml file.. --- ReleaseNotes.txt | 11 ++++++----- nds2rm | 40 ++++++++++++++++++---------------------- 2 files changed, 24 insertions(+), 27 deletions(-) diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index ff4fbf6..ef44a91 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -1,7 +1,7 @@ # $RCSfile: ReleaseNotes.txt,v $ -# $Revision: 1.4 $ +# $Revision: 1.5 $ # $Name: $ -# $Date: 2009/04/26 00:14:53 $ +# $Date: 2009/05/09 21:30:53 $ # $Author: agibert $ @@ -9,12 +9,13 @@ -------------------------------------------------------------------------------- -nds2rm V 1.1.0-1 - A. Gibert - 2009/04/26 +nds2rm V 1.1.0-1 - A. Gibert - 2009/05/09 -------------------------------------------------------------------------------- - Change the RRFNFS: Region and Language list are separated by an '=' and not a ':' in order to be FAT friendly ! -- Add a work around in dsrom.lsg generator: remove the rom name... NinjaPass bug ?! -- Fix a bug in fp reading (visible in rom listing). +- Add a work around in dsrom.lst generator: remove the rom name... NinjaPass bug ?! Help Me ! +- Fix a bug in fp reading (visible in rom listing), +- Add support for non sorted dsrom.xml file... diff --git a/nds2rm b/nds2rm index 16bb15f..411c4e7 100644 --- a/nds2rm +++ b/nds2rm @@ -5,9 +5,9 @@ # (C) 2009 Arnaud G. Gibert #----------------------------------------------------------------------------------------------------------------------------------- # $RCSfile: nds2rm,v $ -# $Revision: 1.18 $ +# $Revision: 1.19 $ # $Name: $ -# $Date: 2009/04/26 00:08:50 $ +# $Date: 2009/05/09 21:30:53 $ # $Author: agibert $ #----------------------------------------------------------------------------------------------------------------------------------- @@ -373,27 +373,23 @@ function xml_load() if [[ "${idx}" != "xxxx" ]] then - - count_print ${idx} - - dat_rn[${idx}]="${rn}" - dat_id[${idx}]="${id}" - dat_title[${idx}]="${title}" - dat_region[${idx}]="${reg_tab[${location}]}" - dat_lang[${idx}]="${lang}" - dat_save_type[${idx}]="${save_type}" - dat_crc[${idx}]="${crc}" - - dat_fp[${idx}]="????" - dat_status[${idx}]="?" - dat_dup[${idx}]="0" - - loaded_cnt=$((${loaded_cnt} + 1)) - - if [[ ${loaded_cnt} -ge ${max_idx} ]] + if [[ ${idx} -le ${max_idx} ]] then - echo "max rom id reached: skipping loading !" 1>&2 - break; + count_print ${idx} + + dat_rn[${idx}]="${rn}" + dat_id[${idx}]="${id}" + dat_title[${idx}]="${title}" + dat_region[${idx}]="${reg_tab[${location}]}" + dat_lang[${idx}]="${lang}" + dat_save_type[${idx}]="${save_type}" + dat_crc[${idx}]="${crc}" + + dat_fp[${idx}]="????" + dat_status[${idx}]="?" + dat_dup[${idx}]="0" + + loaded_cnt=$((${loaded_cnt} + 1)) fi fi ;;