Skip to content

Instantly share code, notes, and snippets.

@MobCat
Last active June 7, 2024 21:46
Show Gist options
  • Save MobCat/9a56117b91e2a2dca4d8aa99b8917852 to your computer and use it in GitHub Desktop.
Save MobCat/9a56117b91e2a2dca4d8aa99b8917852 to your computer and use it in GitHub Desktop.
Script to be used with mymc to turn folders of psu files into ps2 memory card images
::mymc drag and drop
::By MobCat (2024)
::For mymc alpha 2.7
:: Usage -
:: Download this bat script and call it something like batch.bat
:: Place it in the same dir as mymc.exe
:: Drag and drop a folder of .psu files to this batch script
:: A new 8MB .ps2 mem card file will be saved in the same dir as your dir of .psu files
::
:: More info here
:: https://consolemods.org/wiki/Xbox:USB_Device_Compatibility_List#Creating_a_Memory_card_file_to_use_with_Emulators
@echo off
:: Get back to dir where bat is located.
cd /d "%~dp0"
echo "%1"
:: Get name of the folder of .psu files
for %%f in ("%~1") do set "foldername=%%~nxf"
:: Make new ps2 mem card file based on folder name
:: New mem card will be 8MB and located in the same dir as %1
mymc "%~dp1\%foldername%.ps2" format
:: Import PSU files into new mem card file
for %%f in (""%1\"*.psu") do (
mymc "%~dp1\%foldername%.ps2" import "%%f"
)
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment