- Add support for non sorted dsrom.xml file..

This commit is contained in:
agibert 2009-05-09 21:30:53 +00:00
parent c1fb24662c
commit 0445022bd8
2 changed files with 24 additions and 27 deletions

View File

@ -1,7 +1,7 @@
# $RCSfile: ReleaseNotes.txt,v $ # $RCSfile: ReleaseNotes.txt,v $
# $Revision: 1.4 $ # $Revision: 1.5 $
# $Name: $ # $Name: $
# $Date: 2009/04/26 00:14:53 $ # $Date: 2009/05/09 21:30:53 $
# $Author: agibert $ # $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 ! - 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 ?! - 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). - Fix a bug in fp reading (visible in rom listing),
- Add support for non sorted dsrom.xml file...

12
nds2rm
View File

@ -5,9 +5,9 @@
# (C) 2009 Arnaud G. Gibert # (C) 2009 Arnaud G. Gibert
#----------------------------------------------------------------------------------------------------------------------------------- #-----------------------------------------------------------------------------------------------------------------------------------
# $RCSfile: nds2rm,v $ # $RCSfile: nds2rm,v $
# $Revision: 1.18 $ # $Revision: 1.19 $
# $Name: $ # $Name: $
# $Date: 2009/04/26 00:08:50 $ # $Date: 2009/05/09 21:30:53 $
# $Author: agibert $ # $Author: agibert $
#----------------------------------------------------------------------------------------------------------------------------------- #-----------------------------------------------------------------------------------------------------------------------------------
@ -373,7 +373,8 @@ function xml_load()
if [[ "${idx}" != "xxxx" ]] if [[ "${idx}" != "xxxx" ]]
then then
if [[ ${idx} -le ${max_idx} ]]
then
count_print ${idx} count_print ${idx}
dat_rn[${idx}]="${rn}" dat_rn[${idx}]="${rn}"
@ -389,11 +390,6 @@ function xml_load()
dat_dup[${idx}]="0" dat_dup[${idx}]="0"
loaded_cnt=$((${loaded_cnt} + 1)) loaded_cnt=$((${loaded_cnt} + 1))
if [[ ${loaded_cnt} -ge ${max_idx} ]]
then
echo "max rom id reached: skipping loading !" 1>&2
break;
fi fi
fi fi
;; ;;