Search found 44 matches

by Cy-4AH
Fri Jun 01, 2007 12:46 am
Forum: PSP Development
Topic: Listing a directory
Replies: 12
Views: 4637

Don't you mind if I post my variant? I was sure that weltall's words "memset the folder struct to zero every time you do the sceiodread. someone should put this in the headers..." was enough, but you need some code, so, there is mine: while (true) { memset(...
by Cy-4AH
Sat May 26, 2007 12:07 am
Forum: PSP Development
Topic: analog stick acts wierd.
Replies: 6
Views: 2865

No, it will give max left minus little to the right.
Why you don't try sample from pspsdk witch display analog status?
It's placed at pspdev\psp\sdk\samples\controller\basic
by Cy-4AH
Fri Apr 20, 2007 2:39 am
Forum: PSP Development
Topic: where can I get the make file for PSP module?
Replies: 3
Views: 1531

I think you mastn't get the makefile, I think you mast make makefile. Isn't that obvious? Maybe you can generate makefile by yourself. In ModuleTutorial it's not so cleary, but trough method of tryes and errors you'll get workable makefile.
by Cy-4AH
Sun Apr 08, 2007 10:24 pm
Forum: PSP Development
Topic: toolchain bugged now!!!
Replies: 5
Views: 2886

But without PSP_MAIN_THREAD_ATTR(0); some kernel-functions doesn't work. Btw, in toolchain.sh I see support of newlib-1.15.0 and gcc-4.1.0. Am I need to change in toolchain.sh GCC="gcc-4.0.2" NEWLIB="newlib-1.13.0" to GCC="gcc-4.1.0" NEWLIB="newlib-1.15.0" It'...
by Cy-4AH
Thu Apr 05, 2007 7:09 pm
Forum: PSP Development
Topic: toolchain bugged now!!!
Replies: 5
Views: 2886

toolchain bugged now!!!

I don't know what happend with toolchain, but yesterday at night I reinstalled toolchain and now have problem: All my programms with PSP_MODULE_KERNEL suddenly can't exit by pressing home button. Message Box appear, but I can't choose 'Yes', I can only choose 'No' or press Cancel-button. In PSP_MODU...
by Cy-4AH
Tue Mar 20, 2007 3:15 am
Forum: PSP Development
Topic: Help with pspsdk!
Replies: 9
Views: 5884

Ok, than try this one: TARGET = envmap PSPSDK=$(shell psp-config --pspsdk-path) COMMDIR=$(PSPSDK)/samples/gu/common OBJS = envmap.o env0.o $(COMMDIR)/callbacks.o $(COMMDIR)/geometry.o $(COMMIR)/vram.o INCDIR = CFLAGS = -...
by Cy-4AH
Tue Mar 20, 2007 1:24 am
Forum: PSP Development
Topic: Help with pspsdk!
Replies: 9
Views: 5884

everlasting , I'd advised you to write your own functions. Callbacks and Vram just examples. In Vram.h you can find: /* The following are a few helperfunctions to help manage vram in gu-examples. Do not use for your own code, it's better you manage it in your own way. */ But if you still want to us...
by Cy-4AH
Tue Mar 20, 2007 1:09 am
Forum: PSP Development
Topic: Interrupt Controller
Replies: 21
Views: 8960

Without pspDebugScreenPrintf programm become more stable, but not enough: at some interrupts programm on exit print debug information, at others crash with reboot PSP.
by Cy-4AH
Fri Mar 16, 2007 10:57 pm
Forum: PSP Development
Topic: Interrupt Controller
Replies: 21
Views: 8960

Sorry for all day noob questions, but how call old handler? I have such code, that didn't work: int (*old_handler)(void*); int handler (void *p) { pspDebugScreenPrintf("handler 0x%08X\n", old_handler); return &#40...
by Cy-4AH
Fri Mar 16, 2007 9:07 pm
Forum: PSP Development
Topic: Interrupt Controller
Replies: 21
Views: 8960

Thx, hlide. It's worked!!!
I think I should add by myself to pspsdk: "Before using PspIntrHandlerOptionParam initialize field 'size' of PspIntrHandlerOptionParam"
by Cy-4AH
Fri Mar 16, 2007 8:43 pm
Forum: PSP Development
Topic: Interrupt Controller
Replies: 21
Views: 8960

Both :(
by Cy-4AH
Fri Mar 16, 2007 8:15 pm
Forum: PSP Development
Topic: Interrupt Controller
Replies: 21
Views: 8960

Thx, adrahil , now I know where find meaning of error codes. BTW, do you know if some one wrote lib, where I can find function that convert error code to readable string? And now next problem: I want call old irq handler in my handler, so I'd like to know how get its offset. I was theanking that sce...
by Cy-4AH
Fri Mar 16, 2007 3:30 am
Forum: PSP Development
Topic: Interrupt Controller
Replies: 21
Views: 8960

Ok, now I back to problem with Interrupt Controller. Resently I found in psplink sources sceKernelRegisterIntrHandler(PSP_HPREMOTE_INT, 1, intr_handler, NULL, NULL); sceKernelEnableIntr(PSP_HPREMOTE_INT); And then found topick http://forums.ps2dev.org/viewtopic.php?t=...
by Cy-4AH
Fri Mar 02, 2007 8:50 pm
Forum: PSP Development
Topic: Compiling DoomPSP
Replies: 2
Views: 1826

Hi, BlackShark. Recently I compiled DoomPSP. At first you need install timidity lib witch delivered with DoomPSP sources. For that you need add to file DommPSP/src/libtimidity-0.1.0/src/makefile line PSPSDK=$(shell psp-config --pspsdk-path) before include $(PSPSDK)/lib/build.mak Then type in this fo...
by Cy-4AH
Thu Mar 01, 2007 6:57 pm
Forum: PSP Development
Topic: How to get Time in seconds??
Replies: 10
Views: 3869

Perhaps when people ask questions like "how do I get the time?" we should just always post this: http://psp.jim.sh/pspsdk-doc/ J.F. Of course I use pspsdk-doc. Do you think that I just imagened functions time and localtime and they magicaly begin work? If you look in pspsdk-doc at time.h ...
by Cy-4AH
Thu Mar 01, 2007 4:08 am
Forum: PSP Development
Topic: How to get Time in seconds??
Replies: 10
Views: 3869

adrahil wrote:/me hangs himself on to a tree...
adrahil, plz, don't kill yourself. I had found already, that instead using time.h and time() we mast use psprtc.h and sceRtcGetCurrentClockLocalTime();
I'll delete this post.
by Cy-4AH
Thu Mar 01, 2007 2:18 am
Forum: PSP Development
Topic: How to get Time in seconds??
Replies: 10
Views: 3869

I have problem, there is code: char str_today[128]; time_t now; tm *today; time(&now); today = localtime(&now); timeval tv; timezone tz; sceKernelLibcGettimeofday(&tv, &tz); pspDebugScreenSetXY(0,0); strf...
by Cy-4AH
Wed Feb 28, 2007 9:06 pm
Forum: PSP Development
Topic: Problem with cygwin
Replies: 8
Views: 3695

Shentok
Listen my advice: kill your Win2000, use WinXP
by Cy-4AH
Mon Feb 26, 2007 6:40 pm
Forum: PSP Development
Topic: Problem with cygwin
Replies: 8
Views: 3695

O, Shentok ! I have this problem before. This is problem with Cygwin and PC, not with toolchain. Long ago I was trying install toolchain on Windows 2000. It wasn't my PC and it was wery garbaged. And Cygwin was executing some commands incorrectly. So, now there is Windows XP with clear harddrive and...
by Cy-4AH
Mon Feb 26, 2007 6:31 pm
Forum: PSP Development
Topic: Problem with latest toolchain
Replies: 4
Views: 2656

Stragne. Recently I installed toolchain from svn under Cygwin without problems.
by Cy-4AH
Mon Feb 26, 2007 6:27 pm
Forum: PSP Development
Topic: 'Eject' memory stick?
Replies: 6
Views: 3737

I think that cached information also stored on ms, so try delete hidden files.
by Cy-4AH
Fri Feb 23, 2007 7:53 pm
Forum: PSP Development
Topic: USB power of 3,3 V
Replies: 7
Views: 2770

If the hardware doesn't support OTG and host mode, it's impossible to connect normal usb accessories directly to the PSP. Host controllers act differently, while OTG can generate host signals to support the connectivity between two accessories. It seems that the only solution would be a accessory w...
by Cy-4AH
Fri Feb 23, 2007 12:56 am
Forum: PSP Development
Topic: Keep freezing on exit
Replies: 14
Views: 5479

Hm. Now all I know, that problem not in code. Problem must be in your PSP. Maybe it's FileAssistant++ or maybe it's becouse of no-umd mode. Is it enabled?
by Cy-4AH
Thu Feb 22, 2007 6:52 pm
Forum: PSP Development
Topic: HOW TO: Generate PSPSDK documentacion
Replies: 3
Views: 1943

I'd like to add, that psptoolchain generate pspsdk documentation if you have doxygen.
by Cy-4AH
Thu Feb 22, 2007 4:18 am
Forum: PSP Development
Topic: Keep freezing on exit
Replies: 14
Views: 5479

Ok, wich . There is source. At my 3.03OE-C all working like you want: wich.cpp: #include <pspkernel.h> #include <pspdisplay.h> #include <pspdebug.h> #include <pspctrl.h> PSP_MODULE_INFO&#40;"Test v1.0", 0, 1, 1&#41;; PSP_MAIN_THREAD_ATTR&#40;THREAD_ATTR_USER&#41;; int done ...
by Cy-4AH
Wed Feb 21, 2007 7:49 pm
Forum: PSP Development
Topic: Maybe psp-gdb or psp-gcc buged or I do something wrong.
Replies: 4
Views: 2066

Thx, TyRaNiD. It's helped.
by Cy-4AH
Tue Feb 20, 2007 7:26 pm
Forum: PSP Development
Topic: Maybe psp-gdb or psp-gcc buged or I do something wrong.
Replies: 4
Views: 2066

Of course sorry for my english. But anyone have any ideas?
by Cy-4AH
Tue Feb 20, 2007 6:49 pm
Forum: PSP Development
Topic: Refresh main function?
Replies: 10
Views: 3999

Using lables and goto - bad style. I prefer:

Code: Select all

for&#40;...;...;...&#41;
&#123;
    ...
    if&#40;...&#41; continue;
    ...
&#125;
by Cy-4AH
Tue Feb 20, 2007 1:52 am
Forum: PSP Development
Topic: Keep freezing on exit
Replies: 14
Views: 5479

Hm, very strange. My program process ExitCallback even without -g flag.
by Cy-4AH
Tue Feb 20, 2007 12:05 am
Forum: PSP Development
Topic: Keep freezing on exit
Replies: 14
Views: 5479

May be when you jast startet there wasn't sceKernelExitGame(); If I have my development evironment right now right here I'd tryed by myself, but for my look there is all correct and you don't need that strang functions at the and. That is 100%. You can try compare with my code in topic: http://forum...