Help, how to launch a UMD
Help, how to launch a UMD
Hello good, forgiveness for my English esque español.Estoy'm doing a program. A shell and not as a launching UMD I tried anyway, but nothing. Please give me a code to be able to launch the UMD
You have to launch EBOOT.BIN.
Here is an example, here I'm using sctrlKernelLoadExecVSHWithApitype but there's some others ways...
Here is an example, here I'm using sctrlKernelLoadExecVSHWithApitype but there's some others ways...
Code: Select all
struct SceKernelLoadExecVSHParam param;
int apitype = 0;
char *program = NULL;
char *mode = NULL;
apitype = 0x120;
program = "disc0:/PSP_GAME/SYSDIR/EBOOT.BIN";
mode = "game";
memset(¶m, 0, sizeof(param));
param.size = sizeof(param);
param.args = strlen(program) + 1;
param.argp = program;
param.key = mode;
sctrlKernelLoadExecVSHWithApitype(apitype, program, ¶m);
Get Xplora!
This is a english forum, anyway you can ask in spanish HEREHello good, forgiveness for my English esque español.Estoy'm doing a program. A shell and not as a launching UMD I tried anyway, but nothing. Please give me a code to be able to launch the UMD
Esto es un foro inglés, de todas formas puedes preguntar en castellano AQUI
ne0h wrote:You have to launch EBOOT.BIN.
Here is an example, here I'm using sctrlKernelLoadExecVSHWithApitype but there's some others ways...Code: Select all
struct SceKernelLoadExecVSHParam param; int apitype = 0; char *program = NULL; char *mode = NULL; apitype = 0x120; program = "disc0:/PSP_GAME/SYSDIR/EBOOT.BIN"; mode = "game"; memset(¶m, 0, sizeof(param)); param.size = sizeof(param); param.args = strlen(program) + 1; param.argp = program; param.key = mode; sctrlKernelLoadExecVSHWithApitype(apitype, program, ¶m);
Thank you very much and what you provare story. Many thanks
Editorial: Do not get me compile. I have to add something in the makefile? I leave with you my main and tell me if I have something wrong Thanks
Code: Select all
#include <pspkernel.h>
#include <pspdisplay.h>
#include <pspdebug.h>
#include <pspctrl.h>
#include <pspumd.h>
#include <string.h>
#include <psploadexec.h>
#include <psploadexec_kernel.h>
PSP_MODULE_INFO("ReadUMD", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER);
int main(int argc, char* argv[])
{
pspDebugScreenInit();
pspDebugScreenPrintf("Presiona triangulo\n");
SceCtrlData pad;
sceCtrlSetSamplingCycle(0);
sceCtrlSetSamplingMode(0);
while (1)
{
sceCtrlReadBufferPositive(&pad, 1);
if (pad.Buttons & PSP_CTRL_TRIANGLE)
{
struct SceKernelLoadExecVSHParam param;
int apitype = 0;
char *program = NULL;
char *mode = NULL;
apitype = 0x120;
program = "disc0:/PSP_GAME/SYSDIR/EBOOT.BIN";
mode = "game";
memset(¶m, 0, sizeof(param));
param.size = sizeof(param);
param.args = strlen(program) + 1;
param.argp = program;
param.key = mode;
sctrlKernelLoadExecVSHWithApitype(apitype, program, ¶m);
}
if (pad.Buttons & PSP_CTRL_CROSS)
{
sceKernelExitGame();
}
sceKernelDelayThread(200*1000);
}
return 0;
}
ne0h wrote:Add lpspsystemctrl_user to your makefile, and post the compilation log...
Code: Select all
Compilando... espere...
psp-gcc -I. -IC:/PSPDev/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=150 -L.
-LC:/PSPDev/psp/sdk/lib main.o -lpspumd -lpspsystemctrl_user -lpspdebug -lps
pdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -l
pspnet_resolver -lpsputility -lpspuser -lpspkernel -o ReadUMD.elf
c:\pspdev\bin\..\lib\gcc\psp\4.1.0\..\..\..\..\psp\bin\ld.exe: cannot find -lpsp
systemctrl_user
collect2: ld returned 1 exit status
make: *** [ReadUMD.elf] Error 1
Terminado
Download 4.01 m33. Check in the SDK folder. Open up a terminal(or window if you're using cygwin) in the SDK folder, and
cp -rf lib $PSPDEV/psp/sdk && cp -rf include $PSPDEV/psp/sdk
and overwrite all of them.
Then, if you want you can install psp-packer by going into the psp-packer directory, then the src directory, and
make && cp psp-packer $PSPDEV/bin
or on windows, just copy psp-packer.exe in the bin directory in the psp-packer directory to $PSPDEV/bin.
EDIT: You edited after I typed this :(
cp -rf lib $PSPDEV/psp/sdk && cp -rf include $PSPDEV/psp/sdk
and overwrite all of them.
Then, if you want you can install psp-packer by going into the psp-packer directory, then the src directory, and
make && cp psp-packer $PSPDEV/bin
or on windows, just copy psp-packer.exe in the bin directory in the psp-packer directory to $PSPDEV/bin.
EDIT: You edited after I typed this :(
Programming with:
Geany + Latest PSPSDK from svn
Geany + Latest PSPSDK from svn
I compile a thousand thanks to all of you!!!NoEffex wrote:Download 4.01 m33. Check in the SDK folder. Open up a terminal(or window if you're using cygwin) in the SDK folder, and
cp -rf lib $PSPDEV/psp/sdk && cp -rf include $PSPDEV/psp/sdk
and overwrite all of them.
Then, if you want you can install psp-packer by going into the psp-packer directory, then the src directory, and
make && cp psp-packer $PSPDEV/bin
or on windows, just copy psp-packer.exe in the bin directory in the psp-packer directory to $PSPDEV/bin.
EDIT: You edited after I typed this :(
thanks!!! thanks!!!!