Search found 11 matches

by Red_Squirrel
Wed Feb 20, 2008 7:54 am
Forum: PSP Development
Topic: Note, Volup,Voldown, WlanUp and Home...how to capture them?!
Replies: 2
Views: 1195

Note, Volup,Voldown, WlanUp and Home...how to capture them?!

Hi guys, I have a little problem: i made a program to configure another one, and its aim is to set the key combination of the second program... when you press a key program saves the key combination in a txt file. The problem is this: I use this code: while(1) { sceCtrlReadBufferPositive(&pad,1)...
by Red_Squirrel
Thu Jan 17, 2008 5:59 am
Forum: PSP Development
Topic: How to write a Hex value in a file...
Replies: 11
Views: 3646

Ok guys, no problem :)
Thanks to all for the help and see you later ;)
by Red_Squirrel
Thu Jan 17, 2008 5:34 am
Forum: PSP Development
Topic: How to write a Hex value in a file...
Replies: 11
Views: 3646

J.F. wrote:Writing data to a file is beginner programming. Go look at a general C tutorial or programming book. We aren't going to help with beginner stuff here.
So you don't know how to do it...
by Red_Squirrel
Thu Jan 17, 2008 4:43 am
Forum: PSP Development
Topic: How to write a Hex value in a file...
Replies: 11
Views: 3646

hint: int sceIoWrite(SceUID fd, const void *data, SceSize size); P.S.: How do you know that it writes an ASCII value and not a HEX one? And why don't you like ASCII values? Is it just because HEX sounds cooler? Ok, you say your english is not so good, but do you know what discrimina...
by Red_Squirrel
Thu Jan 17, 2008 3:37 am
Forum: PSP Development
Topic: How to write a Hex value in a file...
Replies: 11
Views: 3646

Re: How to write a Hex value in a file...

I want to write a Hex value in a file. I already made a function to hex modify a file, and I use this code to write in a precious offset: int pos = sceIoLseek(fd, 0x46A8, SEEK_SET); sceIoWrite(fd, i1, sizeof(i1)); But it writes an ASCII value (i1 is a...
by Red_Squirrel
Thu Jan 17, 2008 3:11 am
Forum: PSP Development
Topic: How to write a Hex value in a file...
Replies: 11
Views: 3646

Usually i1 contains letters, like "A", "B", "C" or other char as "?", "!", "("...
by Red_Squirrel
Thu Jan 17, 2008 1:32 am
Forum: PSP Development
Topic: How to write a Hex value in a file...
Replies: 11
Views: 3646

How to write a Hex value in a file...

Sorry for my bad english, I'm italian ^^' I want to write a Hex value in a file. I already made a function to hex modify a file, and I use this code to write in a precious offset: int pos = sceIoLseek(fd, 0x46A8, SEEK_SET); sceIoWrite(fd, i1, sizeof(i1)&#4...
by Red_Squirrel
Tue Jan 15, 2008 12:05 am
Forum: PSP Development
Topic: 3.71M33-4 and Flash0 access refused...
Replies: 9
Views: 4429

Sorry, but it still does not work. If I insert the eboot in GAME150 program works very good. But in GAME and GAME371 PSP gives me the error "Impossible to..... (80020148)" My main.c is: #include <pspkernel.h> #include <pspiofilemgr.h> PSP_MODULE_INFO&#40;"TEST", 0x800, 1, 0&a...
by Red_Squirrel
Mon Jan 14, 2008 11:47 pm
Forum: PSP Development
Topic: 3.71M33-4 and Flash0 access refused...
Replies: 9
Views: 4429

Well that's how I've been doing it and it works on Fat / Slim, I have been putting it in GAME on the Fat PSP, If I put the eboot in GAME (on my PSP Fat) I obtain the error: 80020148... It works only in GAME150 (I'm using 3.71 Kernel from recovery). This is my Makefile: TARGET = hello OBJS = main.o ...
by Red_Squirrel
Mon Jan 14, 2008 11:38 pm
Forum: PSP Development
Topic: 3.71M33-4 and Flash0 access refused...
Replies: 9
Views: 4429

It will work if you do it like this, PSP_MODULE_INFO&#40;"MyAppName", 0x800, 1, 0&#41;; PSP_MAIN_THREAD_ATTR&#40;PSP_THREAD_ATTR_VSH&#41;; Thank you :) But if I use that code, program works only if I insert it in PSP/GAME150... I wanted to make it compatible with PSP Slim ...
by Red_Squirrel
Mon Jan 14, 2008 10:41 pm
Forum: PSP Development
Topic: 3.71M33-4 and Flash0 access refused...
Replies: 9
Views: 4429

3.71M33-4 and Flash0 access refused...

Hi, I'm an Italian developer (so sorry for my bad english :P). I have a problem with a my PSP program. I can't access to Flash0 to write or delete files... For example: #include <pspkernel.h> #include <pspiofilemgr.h> PSP_MODULE_INFO&#40;"TEST", 0, 1, 1&#41;; int main&#40;&...