anywho this little tool will compile your .elf for you than move it to your PSP, and it's a little menu too. it'll also tell you if your .elf is missing, if your EBOOT.PBP is missing, or if your psp is not plugged in
so to make this, just make a file called build.bat and paste this code into it
- Code: Select all
@echo off
color 2
:MENU
cls
echo 1 - Compile
echo 2 - Copy Files
echo 3 - Exit
SET /P M=
IF %M%==1 GOTO COMPILE
IF %M%==2 GOTO COPY
IF %M%==3 EXIT
:COMPILE
IF EXIST MAIN.ELF (
"C:\pspsdk\bin\mksfo.exe" HelloWorld title.sfo
"C:\pspsdk\bin\psp-fixup-imports.exe" main.elf
"C:\pspsdk\bin\psp-strip.exe" main.elf -o stripped.elf
"C:\pspsdk\bin\pack-pbp.exe" EBOOT.PBP title.sfo NULL NULL NULL NULL NULL stripped.elf NULL
del title.sfo
del stripped.elf
pause
) ELSE (
echo Main.elf is missing!
pause
)
GOTO MENU
:COPY
IF EXIST H:/PSP (
IF EXIST EBOOT.PBP (
copy "EBOOT.PBP" "H:\PSP/GAME/CAT_Utilities/Hello World"
echo.
echo Finished
echo.
pause
) ELSE (
echo EBOOT.PBP is missing, compile .elf first
pause
)
) ELSE (
echo PSP is not plugged in
pause
)
GOTO MENU
you'll have to do a couple things first
1. wherever it says main.elf change that to the name of your .elf
2. change the HelloWorld in this line
- Code: Select all
"C:\pspsdk\bin\mksfo.exe" HelloWorld title.sfo
to the name of your program
3. Change the path in this line
- Code: Select all
copy "EBOOT.PBP" "H:/PSP/GAME/CAT_Utilities/Hello World"
to the path you want your eboot.pbp to be copied to
4. change the #:/PSP in this line
- Code: Select all
IF EXIST H:/PSP (
to your #:/PSP path
and it should work from there, I'll appreciate any feedback [:



