Jump to content
Download Section Back Up, Navigate the Right Hand Menu to find files, ignore the 0s

how can I build xml from dat database?


pedropicapiedra

Recommended Posts

I think it's solved.

I downloaded .dat file from no-intro for Nintendo Entertainment System, then I made some changes.

I added this header to the file

clrmamepro (
    name "Nintendo - Nintendo Entertainment System"
    description "Nintendo - Nintendo Entertainment System"
    header "No-Intro_NES.xml"
    version XXXXXXXX
    comment "no-intro | www.no-intro.org"
)


 

Then with notepad++ I replaced this RegEx string:

^.*<game name=(.*)>\r\n.*<description>(.*)</description>\r\n.*<rom name=(.*) size="(.*)" crc="(.*)" md5="(.*)" sha1="([^"]*)".*/>\r\n.*</game>

by this one:

\r\ngame \(\r\n\tname \1\r\n\tdescription "\2"\r\n\trom \( name \3 size \4 crc \5 md5 \6 sha1 \7 \)\r\n\)

Making look this:

image.thumb.png.905447aa57365c30ea15f08c4a8a0790.png

Into this:

image.thumb.png.77878f9b9022405b3c17c2a9a6ee5347.png

I had to delete the first and last tag <datafile> but I think that's pretty obvious.

Now the .dat file can be used by Dons HyperSpin ROM Renamer.exe and probably other programs.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...