mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
psp late-night fixes
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@299 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
8b99ab90aa
commit
aefb65bc6a
4 changed files with 22 additions and 6 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <pspkernel.h>
|
||||
#include <pspsdk.h>
|
||||
#include <pspaudiocodec.h>
|
||||
#include <kubridge.h>
|
||||
|
||||
#include "../../Pico/PicoInt.h"
|
||||
#include "../../Pico/sound/mix.h"
|
||||
|
@ -132,9 +133,20 @@ static int read_next_frame(int which_buffer)
|
|||
|
||||
static SceUID load_start_module(const char *prxname)
|
||||
{
|
||||
SceUID mod = pspSdkLoadStartModule(prxname, PSP_MEMORY_PARTITION_KERNEL);
|
||||
if (mod < 0)
|
||||
lprintf("failed to load %s: %08x\n", prxname, mod);
|
||||
SceUID mod, mod1;
|
||||
int status, ret;
|
||||
|
||||
mod = pspSdkLoadStartModule(prxname, PSP_MEMORY_PARTITION_KERNEL);
|
||||
if (mod < 0) {
|
||||
lprintf("failed to load %s (%08x), trying kuKernelLoadModule\n", prxname, mod);
|
||||
mod1 = kuKernelLoadModule(prxname, 0, NULL);
|
||||
if (mod1 < 0) lprintf("kuKernelLoadModule failed with %08x\n", mod1);
|
||||
else {
|
||||
ret = sceKernelStartModule(mod1, 0, NULL, &status, 0);
|
||||
if (ret < 0) lprintf("sceKernelStartModule failed with %08x\n", ret);
|
||||
else mod = mod1;
|
||||
}
|
||||
}
|
||||
return mod;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue