Universal-Rom-Tools / Universal-XML-Scraper

Scraper de Rom
195 stars 46 forks source link

Scraping DosBox #186

Open paradadf opened 7 years ago

paradadf commented 7 years ago

Hi! Someone asked me about scraping games for dosbox and that got me thinking about the best way to do it...

After reading how the games are launched here: https://github.com/recalbox/recalbox-buildroot/blob/master/board/recalbox/fsoverlay/recalbox/share_init/roms/dos/_readme.txt

I want to suggest a new feature. MS Dos gemes usually have one main executable to launch the game. Whe using DosBox, you create a dosbox.bat wirh the name of that executable inside, but hashing those batch files wouldn't make sense if someone doesn't use DosBox. Instead, I suggest adding to the database the main executables (the most intuitive thing) and UXS will be working just fine the way it is right now without modifications. But, in case of DosBox, the games aren't launched neither from the main exe nor the dosbox.bat (for what I understand!). They use the modified folder name instead, as you must add sort of a .pc "extension" to it. It isn't really an extension but just the ending of the folder name. And that folder is what you want to get scraped! So the idea is to, in case UXS identifies a folder name ending with .pc, it scrapes its content (or you limited it to just scraping exe files), and as soon as a match is found, you add the metadata for the folder and not the file itself.

I hope I could expose my idea clearly XD.

Universal-Rom-Tools commented 7 years ago

I need to see if I can use a special function to scrape folder name instead of file name... (so it will solve the Scummvm problem too)

Universal-Rom-Tools commented 7 years ago

Sorry, it's not in the V2.2.0.0 ;) (not the time for this stuff) but I don't forget it ;)

paradadf commented 7 years ago

Don't worry about me... I haven't scraped anything for me in months! Just wanted to open this to not forget about it. Haven't had time to check the new version but what I read sounds very good! Thanks for all the work!