Please help us build a perfect MSX datbase (Emulation MSX Fora)MSX Resource Center PassionMSX MSX2 contest           
            
English Nederlands Español Português Russian         
 Nieuws
   Voorpagina
  Nieuws archief
  Nieuws onderwerpen

 Informatie
   MSX Fora
  Artikelen
  Recensies
  Beursverslagen
  Fotoreportages
  Beurzen en meetings
  Enquêtes
  Links
  Zoek

 Software
   Downloads
  Webshop

 MRC
   Wie we zijn
  Kom bij ons team
  Doneren
  Policies
  Contact met het MRC
  Link naar Ons
  Statistieken

 Zoek
 
  

  

 Login
 

Gebruikersnaam

Wachtwoord




Ben je nog niet lid? Klik hier en word MSX vriend!


 Statistieken
 

Er zijn 47 gasten en 1 MSX vriend online

Je bent een anonieme bezoeker.
 

MSX Fora


MSX Fora

Emulation - Please help us build a perfect MSX datbase

Schrijver

Please help us build a perfect MSX datbase

Vampier
msx addict
Berichten: 496
Geplaatst: 17 Februari 2005, 05:50   
The BlueMSX and openMSX team are working together to build the perfect MSX rom database. We cannot do it alone since we do not have the rom resources.

This database will be used for all kinds of stuff... online lists, new front ends, rom detection etc etc etc.

Right now I've come to the end of what is posible for me to achieve using my rom collection.... so now it's time to ask you for more information.

Here is what I'll need...

Mars2000you and I have made this list http://romdb.vampier.net

It's pretty complete as you can see, all good MSX dumps are in there and a lot of value's are filled up. My goal is to give every entry a SHA1 value. For that I need the following information.

One CRC value field, one SHA1 field and an optional rom name so I can check the entry.

Since I can only do webscripting I've made my life a bit easier and created this program:

<?php
function sha ($filename) {
   return (((sha1(file_get_contents ($filename)))));
}

function crc ($filename) {
   return str_pad ((dechex (crc32(file_get_contents ($filename)))), 8, '0', STR_PAD_LEFT);
}

$dir  = dir('your rom dir');
   $i = 0;
   while($file = $dir->read()) {
           $i++;
 echo(crc($file).'  '.sha($file).'  '.$file.'<br/>');

   }
   $dir->close();
echo("done");
?>


Roms have to be unzipped (sorry about that) for an accurate result.

the output will look something like this

[crc] [sha1] [rom name]
FA8F9BBC 6bde4e6761286a2909858ecef04155e17072996e A Life M36 Planet

thanks for your time

the results can go to 'vampier at [remove for spam] gmail.com'


 
 







(c) 1994 - 2008 Stichting MSX Resource Center. MSX is een trademark van MSX Licensing Corporation.