KINGx - Das inoffizielle PlayStation Forum & News Portal

Normale Version: [C] Prx extern laden - Problem
Sie sehen gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Hallo Community,
Ich habe ein Problem. Ich bin beim Plugin coden in C.
Jetzt will ich eine PRX extern via dieses Plugin laden.

Jetzt gibt es ein Problem:
Ich habe beim definieren von modid einen unbekannten Fehler bekommen.

Fehler:

main.c:129: error: a label can only be part of a statement and a declaration is
not a statement
make: *** [main.o] Error 1


Code von modid:

Code:
sceKernelLoadModule("ms0:/PSP/SYSTEM/umd_dump.prx", 0, NULL);
if(modid >= 0) sceKernelStartModule(modid, 0, NULL, NULL, NULL);


Weiß jemand eine Lösung?

Lg ~Hook~

Probier's mal mit dem Code. Hat bei mir bisher immer geklappt Smile

Code:
/**
* Loads and starts a module
* @param path Path to module to be loaded and started
*/
void LoadStartModule(char *path)
{
    SceUID mod;
    
    mod = sceKernelLoadModule(path, 0, NULL);
    mod = sceKernelStartModule(mod, 0, NULL, NULL, NULL);
}

Referenz-URLs