From b6c1089e3a89cd96393f514f08446efb8ba07f2c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 16 Sep 2003 03:33:31 +0000 Subject: [PATCH] simplify --- stepmania/Utils/pngcrushallfiles.bat | 2 +- stepmania/Utils/pngcrushinplace.bat | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/stepmania/Utils/pngcrushallfiles.bat b/stepmania/Utils/pngcrushallfiles.bat index 166dd33a5f..b994c4c6cb 100755 --- a/stepmania/Utils/pngcrushallfiles.bat +++ b/stepmania/Utils/pngcrushallfiles.bat @@ -1,2 +1,2 @@ SET PATH=%PATH%;c:\stepmania\stepmania\utils -forfiles -p.. -s -m*.png -c"pngcrushinplace.bat 0x22@FILE0x22 0x22@FILEtemp0x22" \ No newline at end of file +forfiles -p.. -s -m*.png -c"pngcrushinplace.bat 0x22@FILE0x22" diff --git a/stepmania/Utils/pngcrushinplace.bat b/stepmania/Utils/pngcrushinplace.bat index 52ab91b226..b8e7a9c2c5 100755 --- a/stepmania/Utils/pngcrushinplace.bat +++ b/stepmania/Utils/pngcrushinplace.bat @@ -1,3 +1,7 @@ -pngcrush %1 %2 -del %1 -rename %2 %1 +@echo off +SET file=%1 +SET tempfile=%file%.TEMP +echo %file% +pngcrush -q %file% %tempfile% +del %file% +rename %tempfile% %file%