Post: [SPRX] Write text files to your PS3
05-23-2015, 06:30 PM #1
Hash847
Purple God
(adsbygoogle = window.adsbygoogle || []).push({});
someone wanted to know how to write a txt file on your PS3, so I thought I might as well release it

You must login or register to view this content.
Note to mods: If you want a virus scan do it your self and update the thread then remove this message. It's a source

(adsbygoogle = window.adsbygoogle || []).push({});

The following 8 users say thank you to Hash847 for this useful post:

Boliberrys, Coffee Bean, Destroyer_MMXV, modzlife2000, samet2013, Passion, TehMerkMods, Laser
05-31-2015, 01:53 AM #11
Originally posted by Coffee
Nice release man Happy would this be used for writing text for a vsh notification? Smile


I have a way to use vsh notifications but it only works while you're in the xmb if you'd like
05-31-2015, 02:29 AM #12
Originally posted by Black
I've had this in one of my engine text menus for cod it's read text file.

    
#define MOUNT_POINT "/dev_hdd0/tmp"
static int isMounted(const char *path) //Checks if path is mounted
{
int i, err;
CellFsStat status;
for (i = 0; i < 15; i++) {
err = cellFsStat(path, &status);
if (err == CELL_FS_SUCCEEDED) {
console_write("\nfslib Started\n");
return 1;
}

}
console_write("\nfslib failed\n");
return 0;
}
void ReadTextFile() //ReadsTextFile duh
{
char str[200];
CellFsErrno err;
int fd, dir;
char w[100], r[100], buf[200];
uint64_t sw, pos, sr, rd;
if (isMounted(MOUNT_POINT)) //Check if mounted
{
err = cellFsOpen(MOUNT_POINT"text_file_that_you_want_read.txt", CELL_FS_O_RDONLY, &fd, NULL, 0); // Opens file
if (err == 0)
{
err = cellFsRead(fd, str, sizeof(str), &sw); //Read File and moves text into placeholder 'str'
if (err != 0)
console_write("Failed to read file");
console_write(str);//prints text file
err = cellFsClose(fd);
if (err != 0)
console_write("Failed to close file");
}
}
}

Haha thanks, I already had a way to read/write to files. I was just hoping he'd provide the code and show others how to do it

The following user thanked John for this useful post:

05-31-2015, 07:17 AM #13
SC58
Former Staff
Originally posted by Coffee
Nice release man Happy would this be used for writing text for a vsh notification? Smile


to do that u need to hook to the vsh with prx loader or one of them loader that load sprx then in your sprx u need to have it change process to ppu to be able to edit the game then u can edit vsh and ppu same time

The following user thanked SC58 for this useful post:

Boliberrys
05-31-2015, 09:50 AM #14
Originally posted by Black
I have a way to use vsh notifications but it only works while you're in the xmb if you'd like


Thanks man but i got my homebrew to do it now buddy SmileThanks for the offer though.
06-02-2015, 01:21 AM #15
Hash847
Purple God
Originally posted by Black
I have a way to use vsh notifications but it only works while you're in the xmb if you'd like


Not true, the prx only needs to be loaded via the xmb / in the vsh process
09-25-2016, 09:01 AM #16
Can Someone re-upload this or send me the code please?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo