Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: How do you update CHDs?  (Read 3635 times)

0 Members and 1 Guest are viewing this topic.

heyyouguys

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:July 15, 2025, 11:23:43 pm
  • I want to build my own arcade controls!
How do you update CHDs?
« on: May 05, 2016, 07:43:20 pm »
I searched and not really sure how or what to do and use to update CHD files. I currently have .161 set of chd's and have .173 roms. Using Mameuifx .173 64bit. Can anyone point me in the right direction or to a tutorial that explains what I need to do to update them?

Thanks in advance

haynor666

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1543
  • Last login:July 15, 2025, 03:41:34 pm
  • retro maniac
Re: How do you update CHDs?
« Reply #1 on: May 08, 2016, 12:17:49 pm »
For a start You could try to upgrade chd with this script:

Code: [Select]
@echo off
set old_dir=.\
set new_dir=.\CHDs_new
set chdman=.\chdman.exe

if NOT exist "%old_dir%" (
   goto :EOF
)

for /F "tokens=*" %%a in ('dir /b "%old_dir%"^|find /v "chd convert.cmd"^|find /v "chdman.exe"') DO (
   if NOT exist "%new_dir%\%%a" (
      mkdir "%new_dir%\%%a"
   )
   for /F %%b in ('dir /b "%old_dir%\%%a"') do (
      echo Converting: %%b
      "%chdman%" copy -i "%old_dir%\%%a\%%b" -o "%new_dir%\%%a\%%b"
   )
)

Just make new txt file copy entire text from code area and name it convert.cmd, also put chdman.exe (latest one from version 172) along with this script in directory where You have chds. After You run it after few hours will give You all chds upgraded to newest format in directory CHDs_new. Move entire CHD_new directory outside main roms directory.

After this just give clrmamepro job to scan entire mame roms directory. It should give You information what chds are with wrong version or not needed/bad files. If some files can be copied just replace it with from CHDs_new and download remaining from internet.

heyyouguys

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 40
  • Last login:July 15, 2025, 11:23:43 pm
  • I want to build my own arcade controls!
Re: How do you update CHDs?
« Reply #2 on: May 08, 2016, 05:28:51 pm »
Thanks for the info!!!