Here's my function and what I use to run it:
Code: Select all
//Load_EBOOT Function
void Load_EBOOT(char *target)
{
struct SceKernelLoadExecVSHParam param;
memset(¶m, 0, sizeof(param));
param.key = "game";
param.size = sizeof(param);
param.args = strlen(target)+1;
param.argp = target;
sctrlKernelLoadExecVSHMs2(target, ¶m);
}
//EBOOT 1
if (isKeyPressed(KEY_1) && ctrl && alt){
displayStatusText("Loading Application 1...");
sceKernelDelayThread(3 * 1000 * 1000);
Load_EBOOT("ms0:/SEPlugins/piKey/Applications/App1/EBOOT.PBP");
}
I've come up with this so far:
Code: Select all
int Application_1 = 0;
// Read the config file
int cfg = configOpen("ms0:/SEPlugins/piKey/AppLaunchConfig.txt");
if (cfg >= 0)
{
while (configRead(cfg, cfgtoken, cfgvalue))
{
if (strcmp(cfgtoken, "Application 1") == 0)
{
Application_1 = (cfgvalue);
}
}
}
//EBOOT 1
if (isKeyPressed(KEY_1) && ctrl && alt){
displayStatusText("Loading Application 1...");
sceKernelDelayThread(3 * 1000 * 1000);
Load_EBOOT(Application_1);
}
It gives the following errors:
Code: Select all
ctrlout.c:515: warning: assignment makes integer from pointer without a cast
ctrlout.c:526: warning: passing argument 1 of 'Load_EBOOT' makes pointer from integer without a cast
Code: Select all
Application 1 = "ms0:/SEPlugins/piKey/Applications/App1/EBOOT.PBP"
Anything is greatly appreciated!
Angelo