5 Commits

Author SHA1 Message Date
agibert
0445022bd8 - Add support for non sorted dsrom.xml file.. 2009-05-09 21:30:53 +00:00
agibert
c1fb24662c - Add fp bug correction. 2009-04-26 00:14:53 +00:00
agibert
ca4259ed43 - Update RRFNFS to 1.1 version. 2009-04-26 00:14:32 +00:00
agibert
dbd9496c4a - Fix a bug in fp reading from file name. 2009-04-26 00:08:50 +00:00
agibert
9553e74e55 - 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 ?!
2009-04-24 22:42:03 +00:00
3 changed files with 51 additions and 39 deletions

View File

@@ -1,7 +1,7 @@
# $RCSfile: ReadMe.txt,v $
# $Revision: 1.2 $
# $Revision: 1.4 $
# $Name: $
# $Date: 2009/04/12 01:20:14 $
# $Date: 2009/04/26 00:14:32 $
# $Author: agibert $
@@ -29,16 +29,16 @@ There is three modes available
Repository structure
--------------------
The repository is minimally composed by two directory: roms and misc.
The rom directory is full of rom files. These file can be uncompressed (.nds) or compressed. Three compressors are supported: zip, rar and 7zip. Next to a nds2rm run, the rom file names and rom archive file names follow the RRNF format. Before a nds2rn run, the rom file names must start with a number followed by a space.
The rom directory is full of rom files. These file can be uncompressed (.nds) or compressed. Three compressors are supported: zip, rar and 7zip. Next to a nds2rm run, the rom file names and rom archive file names follow the RRFNFS 1.1 format. Before a nds2rn run, the rom file names must start with a number followed by a space.
In the misc directory, nds2rm is looking for the dat file: dsrom.xml. This file is comming from http://www.advanscene.com/offline/datas/ADVANsCEne_NDS.zip
RRFNFS: Rx3 Rom File Name Format Standard
-----------------------------------------
RRFNFS 1.1: Rx3 Rom File Name Format Standard version 1.1
---------------------------------------------------------
nds2rm stores ROMs in a .nds file with a standardized file name format:
XXXX - NNNNNNNNNN (R:L1-...-Ln) [SS].nds
XXXX - NNNNNNNNNN (R=L1-...-Ln) [SS].nds
with
XXXX: id
NNNNNNNNN: name
@@ -47,7 +47,7 @@ RRFNFS: Rx3 Rom File Name Format Standard
SS: Status (OK,KO)
nds2rm compresses each ROM file in an archive file with a standardized file name format:
XXXX - NNNNNNNNNN (R:L1-...-Ln) [SS] {CCCCCCCC} <FFFF>.ccc
XXXX - NNNNNNNNNN (R=L1-...-Ln) [SS] {CCCCCCCC} <FFFF>.ccc
with:
XXXX: id
NNNNNNNNN: name

View File

@@ -1,13 +1,24 @@
# $RCSfile: ReleaseNotes.txt,v $
# $Revision: 1.2 $
# $Revision: 1.5 $
# $Name: $
# $Date: 2009/04/12 01:20:14 $
# $Date: 2009/05/09 21:30:53 $
# $Author: agibert $
--------------------------------------------------------------------------------
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.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...
--------------------------------------------------------------------------------
nds2rm V 1.0.0-1 - A. Gibert - 2009/04/12
--------------------------------------------------------------------------------

61
nds2rm
View File

@@ -5,9 +5,9 @@
# (C) 2009 Arnaud G. Gibert
#-----------------------------------------------------------------------------------------------------------------------------------
# $RCSfile: nds2rm,v $
# $Revision: 1.16 $
# $Revision: 1.19 $
# $Name: $
# $Date: 2009/04/12 01:20:14 $
# $Date: 2009/05/09 21:30:53 $
# $Author: agibert $
#-----------------------------------------------------------------------------------------------------------------------------------
@@ -251,7 +251,7 @@ function env_setup()
;;
esac
rrfnfs_regex=".... - .* \(.*:.*\) \[..\] \{........} <....>[-]*[0-9]*\.${csfx}$"
rrfnfs_regex=".... - .* \(.*=.*\) \[..\] \{........} <....>[-]*[0-9]*\.${csfx}$"
}
@@ -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
;;
@@ -531,7 +527,7 @@ function rom_list_dump()
do
if [[ ${dat_status[${i}]} == "${status}" ]]
then
echo "${dat_id[${i}]} - ${dat_title[${i}]} (${dat_region[${i}]}:${dat_lang[${i}]}) {${dat_crc[${i}]}} <${dat_fp[${i}]}>"
echo "${dat_id[${i}]} - ${dat_title[${i}]} (${dat_region[${i}]}=${dat_lang[${i}]}) {${dat_crc[${i}]}} <${dat_fp[${i}]}>"
fi
i=$(( ${i} + 1 ))
@@ -574,6 +570,8 @@ function dsrom_dump()
{
echo "dumping ds rom list..." 1>&2
echo "${dat_id[${loaded_cnt}]}"
i=1
while [[ ${i} -le ${loaded_cnt} ]]
@@ -582,7 +580,10 @@ function dsrom_dump()
then
mask=$(mask_get "${dat_save_type[${i}]}")
echo "${dat_id[${i}]} ${dat_fp[${i}]}-0 $mask ${dat_title[${i}]} (${dat_region[${i}]}:${dat_lang[${i}]}) [${dat_status[${i}]}] {${dat_crc[${i}]}}"
# echo "${dat_id[${i}]} ${dat_fp[${i}]}-0 $mask ${dat_title[${i}]} (${dat_region[${i}]}:${dat_lang[${i}]}) [${dat_status[${i}]}] {${dat_crc[${i}]}}"
# Try to fix non working dsrom.lst by removing rom name... :^(
echo "${dat_id[${i}]} ${dat_fp[${i}]}-0 $mask"
fi
i=$(( ${i} + 1 ))
@@ -657,7 +658,7 @@ function arc_mkfn()
dup_id=${9}
file_prefix="${id} - ${title} (${reg}:${lang}) [${status}] {${crc}} <${fp}>"
file_prefix="${id} - ${title} (${reg}=${lang}) [${status}] {${crc}} <${fp}>"
if [[ ${dup_id} == "" ]]
then
@@ -933,7 +934,7 @@ function arc_proceed()
if [[ "${extract}" == "yes" ]]
then
rom="${id} - ${title} (${reg}:${lang}).nds"
rom="${id} - ${title} (${reg}=${lang}).nds"
rom_extract "${rom}" "${file}"
@@ -1000,7 +1001,7 @@ function arc_proceed()
status2="OK"
# Rename the ROM file
rom2="${id} - ${title} (${reg}:${lang}) [${status2}].nds"
rom2="${id} - ${title} (${reg}=${lang}) [${status2}].nds"
print_verbose "moving ${rom} to ${rom2}"
@@ -1031,7 +1032,7 @@ function arc_proceed()
if [[ ( "${renumed}" != "yes") && ( ( "${arc_type}" != "rx3" ) || ( "${rebuild}" == "yes" ) ) ]]
then
rom2="${id} - ${title} (${reg}:${lang}) [${status}].nds"
rom2="${id} - ${title} (${reg}=${lang}) [${status}].nds"
print_verbose "moving ${rom} to ${rom2}"
@@ -1162,7 +1163,7 @@ function suffix_mng()
else
status=${file/* \[/}; status=${status/\] \{*/}
crc=${file/*\] \{/}; crc=${crc/\} \<*/}
fp=${file/*\} \</}; fp=${fp/\>-*/}
fp=${file/*\} \</}; fp=${fp/\>*/}
dat_dup[${idx}]="${dup_id}"