PDA

View Full Version : PFM v.01



Cpasjuste
June 27th, 2005, 19:24
Hi, i have worked a lot with my very little knowledge on the file manager to get some very easy things to work like it must, so here is the second version of it.
I wait for bug reports or requests. If someone would like to make a nice background image wich will act as a GUI (don't forget to incorpore all infos) , it will be cool.

PspFileManager_v0.2.zip (http://cpasjuste1.free.fr/psp/PspFileManager_v0.2.zip)



PSP FiLE MANAGER V0.2
=====================



Features
--------

- Remove Files.
- Replace a target file with a selected file. (Nice for all emus/homebrew with no roms/file selector)
- Copy/Move a selected file to a selected folder. (For moving delet the copied file...)
- Better interface with colors


Usage
-----

IMPORTANT : BE SURE TO PUT THE EBOOT IN A FOLDER CALLED "PFM" ELSE IT WONT WORK.

- Circle button to enter a dir or select a file to bind the file options.
- Cross button to return.
- Start to set the target file.
- Select to set the target folder.



V0.2
----

- Better organisation ...
- Verry little better GUI.
- Abillity to copy file to a folder.
- Some bugs fix ..



GREATS goes to Ps2dev.org, psp-news.dcemu.co.uk, psphackers.com, gueux.be, Nem, and all people
who like the PSP.



Cpasjuste - psp.neuf.fr

wraggster
June 27th, 2005, 19:34
awesome :)

Will post news on main site ;)

shizzle
June 27th, 2005, 20:05
Cool, this will be really usefull, thanks :p

Cpasjuste
June 28th, 2005, 22:14
Hi, if there is a confirmed coder who look at this message i would like to ask him a stupid thing that i cant figure :

So my problem is that i try to open a file with 2 "variables" for the path :

Here i define the path writed in the file "ms0:/PFM2.DAT" as tfolder so for exemple tfolder = ms0:/PSP/


fd3 = sceIoOpen("ms0:/PFM2.DAT",O_RDONLY, 0777);
sceIoRead(fd3, tfolder, 255);


Here i define the name of the file writed in the file "ms0:/PFM3.DAT" as tfile so for exemple tfile = eboot.pbp


fd4 = sceIoOpen("ms0:/PFM3.DAT",O_RDONLY, 0777);
sceIoRead(fd4, tfile, 255);


So my prob is here, i dont know how to use tfolder + tfile in the function, i hope you understand me, so tfolder+tfile should be "ms0:/PSP/eboot.pbp"


fd1 = sceIoOpen(target,O_RDONLY, 0777);

bad code :
fd2 = sceIoOpen(tfolder+tfile,O_WRONLY | O_CREAT | O_TRUNC, 0777);


Thanks in advance if someone is able to help :)
Bye, Cpasjuste.

goblindojo
June 28th, 2005, 22:38
Try strcat(char *s, char *t) which is available from string.h, which copies the string t to the end of s, like this:

char path[256] = "ms0:/psp/game/sokoban";
char file[] = "eboot.pbp";
strcat(path, "/"); // add directory separator
strcat(path, file); // path is now "ms0:/psp/game/sokoban/eboot.pbp"

Cpasjuste
June 28th, 2005, 23:10
Thanks, i have lurn another basic thing, i now understand how it work, many thanks.

Cpasjuste
June 29th, 2005, 02:27
Main post Updated to v0.2