![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on [C] [PRX] blit_string within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hi, Im trying to make a PRX but when i try it, i dont see the string i want to ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
Hi,
Im trying to make a PRX but when i try it, i dont see the string i want to print. this is my C code: Code:
#include <pspkernel.h>
#include <string.h>
#include <stdlib.h>
#include "blit.h"
//#define printf(fmt, ...)
#define debug_log(fmt, ...)
PSP_MODULE_INFO("IRSMP3", 0x1000, 1, 1);
int main_thid;
int main_thread(SceSize args, void *argp)
{
while(1)
{
sceKernelDelayThread(50000);
blit_string(60-17,265,"RAND",0xffffff,0x000000);
}
}
int module_start(SceSize args, void *argp)
{
main_thid = sceKernelCreateThread("IRSMAIN_Thread", main_thread, /*8*/ 8, 0x04000, 0, NULL);
if(main_thid >= 0)
{
sceKernelStartThread(main_thid, args, argp);
}
return 0;
}
//this isn't called
int module_stop(SceSize args, void *argp)
{
return (0);
}
Code:
TARGET = irsmp3 OBJS = mp3.o blit.o exports.o USE_KERNEL_LIBC = 1 USE_KERNEL_LIBS = 1 PRX_EXPORTS = exports.exp INCDIR = CFLAGS = -DNOEXIT -DFPM_MIPS -O2 -G0 -Wall #CFLAGS = -DNOEXIT -DFPM_MIPS -O2 -G0 -Wall -fno-builtin-printf CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti ASFLAGS = $(CFLAGS) LIBDIR = LIBS = -lpspkernel -lpsplibc #EXTRA_TARGETS = EBOOT.PBP #PSP_EBOOT_TITLE = SDK Test v1.0 PSPSDK=$(shell psp-config --pspsdk-path) include $(PSPSDK)/lib/build_prx.mak Code:
# Define the exports for the prx PSP_BEGIN_EXPORTS # These four lines are mandatory (although you can add other functions like module_stop) # syslib is a psynonym for the single mandatory export. PSP_EXPORT_START(syslib, 0, 0x8000) PSP_EXPORT_FUNC(module_start) PSP_EXPORT_FUNC(module_stop) PSP_EXPORT_VAR(module_info) PSP_EXPORT_END PSP_EXPORT_START(irsmp3, 0, 0x4001) PSP_EXPORT_END PSP_END_EXPORTS Does anyone know why it doesn't work? Bye,
|
|
|
|
|
|
#3 | |
![]() ![]() Developer
|
Quote:
The bolded ones are not needed. You are trying to use LIBC and use the flag Kernel LIBC which is totally contrary. Since you aren't exporting any funcs, these Code:
PSP_EXPORT_START(irsmp3, 0, 0x4001) PSP_EXPORT_END
__________________
Hardware Alarm Suite II v2.7 bld 1727 (1730 Latest)|Academic Aid 6.R769 w/ Motion|LocoRoco Motion Plugin|XmbController 1.61|More(32) TweakDISPLAY(NOW OUT!) | PaintOnXMB v1
|
|
|
|
|
|
|
#4 | |
![]() |
the error:
Quote:
USE_KERNEL_LIBC = 1 also delete? Last edited by basfreak; 12-31-2007 at 12:47 AM.. |
|
|
|
|
|
|
#6 | ||
![]() ![]() Developer
|
Quote:
__________________
Raphs board rules #31: Excessive use of punctuation is either a sign of a lesser ego or a small mind. Avoid it if you don't want to look like a total moron. Raphs board rules #17: When you need to ask whether you are capable of doing something, you are not. Raphs board rules #2: Exploits aren't found by changing version numbers, blindly merging data into a file or turning your PSP upside down. Raphs board rules #1: If you have no clue how exploits work, don't come up with ideas about them. |
||
|
|
|
|
|
#7 |
![]() |
it doesnt work anyway
![]() PSP-Dev@bas /cygdrive/c/psp/mp3prx $ make psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk /include -DNOEXIT -DFPM_MIPS -O2 -G0 -Wall -D_PSP_FW_VERSION=150 -c -o blit.o blit.c blit.c: In function 'blit_string': blit.c:149: warning: passing argument 4 of 'sceDisplayGetFrameBuf' makes integer from pointer without a cast psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk /include -DNOEXIT -DFPM_MIPS -O2 -G0 -Wall -D_PSP_FW_VERSION=150 -L. -L/usr/loc al/pspdev/psp/sdk/lib -Wl,-q,-T/usr/local/pspdev/psp/sdk/lib/linkfile.prx -mno-c rt0 -nostartfiles mp3.o blit.o exports.o -lpspkernel -lpspdebug -lpspdisplay_d river -lpspctrl_driver -lpspsdk -lpspkernel -o irsmp3.elf psp-fixup-imports irsmp3.elf psp-prxgen irsmp3.elf irsmp3.prx Last edited by basfreak; 12-31-2007 at 09:39 AM.. |
|
|
|
![]() |
| Tags |
| blitstring , prx |
| Thread Tools | |
|
|