recording: script to auto-regen image header files

This commit is contained in:
Tyler Wilding 2020-04-26 19:41:18 -04:00 committed by refractionpcsx2
parent a50d67e59e
commit 3e0ec4ebd3
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
# ----
# Runs all *.png files in the current directory
# through tools/bin/bin2cpp.exe
# which creates a header file with the image data to be used
# with wxWidgets (wxBitmap / wxImage specifically)
# ----
$files = Get-ChildItem -Path $PSScriptRoot -Filter *.png
foreach ($f in $files ) {
..\..\..\..\tools\bin\bin2cpp.exe $f.Name
}