GP32 Launch Fxes


Alessandro

Member
Joined
Apr 2, 2004
Messages
127
Age
46
Location
Liguria, Italy
Website
Visit site
Hi.
I've took a look at the GP32SDK Api Reference and it seems there's no api to launch another process..

How can I launch another game/app from mine? What I need to do it's a sort of file launcher... any help? or maybe some code? :) I'm not using the MrMirko's SDK, just the devkitadv.

Thanks in advice,
Alessandro
 
The only apps you can launch are gxb's. To launch an fxe you first need to convert it back to a gxb then use GpAppExecute (see spiv's site for unfxe code).
 
Ops, you already answered me :p

I found this in the header files:

int GpAppExecute(char * p_code_ptr, const char * s_path);

but those functions are not documented in the SDK API.. :(

Where can I get the docs for the funcs not in the GP32 SDK API pdf? :huh:

Later,
Alessandro
 
Alessandro posted on Apr 22 2004 at 10:34 AM said:
Ops, you already answered me :p

I found this in the header files:

int GpAppExecute(char * p_code_ptr, const char * s_path);

but those functions are not documented in the SDK API.. :(

Where can I get the docs for the funcs not in the GP32 SDK API pdf? :huh:

Later,
Alessandro
I have often wondered this myself - it seems that there are a LOT of undocumented functions.
 
Last edited by a moderator:
Yep,
I asked for volunteers to build a comprehensive guide, but everybody's busy :p

If we had a good documentation, I'm sure we could get more from all our projects B)

Later.
Alessandro
 
p_code_ptr is the gxb size in the first 4 bytes, followed by the actual gxb.
s_path is the full path to the file, excluding the extension.

Code:
ulong s = 0;
GpFileGetSize ( thefile, &s );
gxb=(unsigned char *)gp_mem_func.malloc(s+4);
*(unsigned long*)gxb=s;
GpFileRead(fh,gxb+4,s,(ulong*)&n_dummy);
GpAppExecute(gxb,path);
or something like that.
 
Back
Top