Search found 4 matches

by petit.padavoine
Thu May 31, 2007 3:52 pm
Forum: PSP Development
Topic: Listing a directory
Replies: 12
Views: 4805

at the start folder should be empty "folder" is allocated on the stack and so it will be filled with uninitialized data initially. If that works then you're just getting lucky. Thanks a lot for all your answers, guys. So, memset(&folder, 0, sizeof(SceIoDiren)&a...
by petit.padavoine
Thu May 31, 2007 2:50 am
Forum: PSP Development
Topic: Listing a directory
Replies: 12
Views: 4805

memset the folder struct to zero every time you do the sceiodread. someone should put this in the headers... So while(sceIoDread(game, &folder)){ printf(folder.d_name); memset(&folder, 0, sizeof(SceIoDirent)&am...
by petit.padavoine
Thu May 31, 2007 1:44 am
Forum: PSP Development
Topic: Listing a directory
Replies: 12
Views: 4805

Listing a directory

Hello. I'm trying to print out a list of the contents of a directory. The code compiles correctly but when I execute it on the PSP, it freezes and turns off automatically after a few seconds. #include <pspkernel.h> #include <pspdebug.h> #include <pspdisplay.h> #include <stdio.h> PSP_MODULE_INFO&...
by petit.padavoine
Sat Apr 07, 2007 2:20 am
Forum: PSP Development
Topic: PSPE Emulator bug
Replies: 8
Views: 4224

PSPE Emulator bug

I'm just trying to run a simple Hello World app using the PSPE Emulator, but it just won't work for some reason. A windows pops up, and closes immediately.
Any help/suggestions?
Thank in advance