SET MIPS_TEMP=e:\psx\TEMP SET MIPS_COMPILER_PATH=e:\psx\BIN SET MIPS_INCLUDE_PATH=e:\psx\INCLUDE SET MIPS_CPLUS_INCLUDE_PATH=e:\psx\INCLUDE SET MIPS_LIBRARY_PATH=e:\psx\LIB echo Compiling... mipsgcc -O2 -Iinclude -Xlinker -mpsx -o %1.psx %1.c lib\syscall.o lib\_start.o echo Fixing EXE... echo yes > yes.txt exefixup %1.psx < yes.txt > nul echo Deleting old EXE... if exist %1.exe del %1.exe echo Renaming... if exist padded.exe ren padded.exe %1.exe if not exist %1.exe copy %1.psx %1.exe