Is it possible for a plugin to load in a specific game? The plugin one of my team has made has been designed specificly for Go! Messenger and causes a LOT of problems in other applications. The plugin is launched by a PRX engine.
/**
* Gets the api type
*
* @returns the api type in which the system has booted
*/
int kuKernelInitApitype();
/**
* Gets the filename of the executable to be launched after all modules of the api.
*
* @param initfilename - String where copy the initfilename
* @returns 0 on success
*/
int kuKernelInitFileName(char *initfilename);
/**
*
* Gets the device in which the application was launched.
*
* @returns the device code, one of PSPBootFrom values.
*/
int kuKernelBootFrom();
/**
* Get the key configuration in which the system has booted.
*
* @returns the key configuration code, one of PSPKeyConfig values
*/
int kuKernelInitKeyConfig();
I want to do something like this:
Last edited by angelo on Sat Oct 11, 2008 5:29 am, edited 2 times in total.
angelo wrote:Is it possible for a plugin to load in a specific game? The plugin I've made has been designed specificly for Go! Messenger and causes a LOT of problems in other applications. The plugin is launched by a PRX engine.
/**
* Gets the api type
*
* @returns the api type in which the system has booted
*/
int kuKernelInitApitype();
/**
* Gets the filename of the executable to be launched after all modules of the api.
*
* @param initfilename - String where copy the initfilename
* @returns 0 on success
*/
int kuKernelInitFileName(char *initfilename);
/**
*
* Gets the device in which the application was launched.
*
* @returns the device code, one of PSPBootFrom values.
*/
int kuKernelBootFrom();
/**
* Get the key configuration in which the system has booted.
*
* @returns the key configuration code, one of PSPKeyConfig values
*/
int kuKernelInitKeyConfig();
I want to do something like this:
If you are trying to make a game in prx game, then you have to do alot of things.
If you want to detect just GO MESSENGER, you could use sceKernelInitFilename to know the path of the file, read it, check if it is a pbp, if it so, read the sfo and compare the game code with the one of GO MESSENGER.
This wouldn't work with hombebrew pbp's because they all use same gamecode, but it will work for GO MESSENGER.
LoadDrivers("ms0:/seplugins/pikey/inputdrivers", 1);
if (kuKernelInitFileName("ULES00856"))
{
LoadDrivers("ms0:/seplugins/pikey/GoK", 0);
}else{
LoadDrivers("ms0:/seplugins/pikey/outputdrivers", 0);
}
sioPrint("--- All plugins loaded ---\r\n");
displayStatusText("piKey is now ACTIVE");
No errors, but the system isn't working.
The Disk ID of Go! Messenger is ULES00856 and when it's running I want the PRX's in the "GoK" folder to load. Otherwise, then just the modules in "outputdrivers".
angelo wrote:Is it possible for a plugin to load in a specific game? The plugin I've made has been designed specificly for Go! Messenger and causes a LOT of problems in other applications. The plugin is launched by a PRX engine.
you know as well as I do that I made it, mostly blind :P
It's odd... the plugin works great in Go! Messenger, but just causes issues in other applications! Ironic eh?
I've been trying for hours to get this to work. I know the game code is "ULES00856", but I'm not sure how to see if ULES00856 is running. I've tried using modules and other stuff. Grrrr!
/**
* Gets the filename of the executable to be launched after all modules of the api.
*
* @param initfilename - String where copy the initfilename
* @returns 0 on success
*/
int kuKernelInitFileName(char *initfilename);
Look closely at the initfilename parameter: it's the string where the name is COPIED, not a string to search for. You need something more like: