Advertisement
NateMac00

adb.arcadeitalia.net CMD code update

Oct 13th, 2023 (edited)
903
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.59 KB | None | 0 0
  1. @echo off
  2. rem AUTHOR: Arcade Database by motoschifo - http://adb.arcadeitalia.net
  3.  
  4. rem MAMEROOT is the root folder of Mame
  5. set MAMEROOT=D:\MAME 0.259 ROMSET
  6. set NEWLOCATION=D:\MAME_0.259_Systems\neogeo
  7.  
  8. goto process_games
  9.  
  10. :process_game
  11. SETLOCAL
  12. rem ROMSET is the zip rom file name without extension (ex. mslug, pacman, atetris)
  13. set ROMSET=%~1
  14. rem ROMTYPE is used for game type: P=parent, C=clone, N=none
  15. set ROMTYPE=%~2
  16. rem ROMPARENT is the parent romset (only for clones)
  17. set ROMPARENT=%~3
  18. rem SCREEN is the orientation of screen: H=horizontal, V=vertical, N=none/screenless
  19. set SCREEN=%~4
  20. rem TITLE is the game title
  21. set TITLE=%~5
  22.  
  23. echo.=====================================================================
  24. echo.PROCESS GAME %ROMSET% - %TITLE%
  25. echo.PARENT: %ROMPARENT%  -  TYPE %ROMTYPE%  -  SCREEN %SCREEN%
  26. if not exist "%MAMEROOT%\%ROMSET%.zip" (echo ***********************************   FILE MISSING   ***********************************   )
  27.  
  28. rem Moves ROM Zips & CHD Folders
  29. if exist "%MAMEROOT%\%ROMSET%.zip" move "%MAMEROOT%\%ROMSET%.zip" "%NEWLOCATION%\%ROMSET%.zip"
  30. if exist "%MAMEROOT%\%ROMSET%" move "%MAMEROOT%\%ROMSET%" "%NEWLOCATION%"
  31.  
  32. :: Copy ROM Zips & CHD Folders
  33. :: if exist "%MAMEROOT%\%ROMSET%.zip" copy "%MAMEROOT%\%ROMSET%.zip" "%NEWLOCATION%\%ROMSET%.zip"
  34. :: if exist "%MAMEROOT%\%ROMSET%" xcopy "%MAMEROOT%\%ROMSET%" "%NEWLOCATION%\%ROMSET%" /E /I /Y
  35.  
  36. echo.
  37. echo.---------------------------------------------------------------------
  38.  
  39. ENDLOCAL \& SET _result=
  40. goto :eof
  41.  
  42.  
  43. :process_games
  44. call :process_game "zupapa" "P" "" "H" "Zupapa!"
  45. pause
  46. echo.JOB COMPLETED
Advertisement
Comments
  • Mir9_0
    1 year
    Comment was deleted
Add Comment
Please, Sign In to add comment
Advertisement