Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define u32 unsigned int
- int (*sceIoOpen)(const char* file, int mode, int unknown);
- void (*sceIoClose)(int fd);
- int (*sceIoWrite)(int fd, void *data, int size);
- void _start(u32 paf_addr)
- {
- //u32 vshmain_addr = _lw(paf_addr+0x1910B4)-0x111A0;
- sceIoOpen = (void*)(paf_addr+0x0015EE70);
- sceIoWrite = (void*)(paf_addr+0x0015EE40);
- sceIoClose = (void*)(paf_addr+0x0015EE60);
- int hFile;
- char greeting[] = "HelloWorld from TRFyuki's h.bin! -^_^-";
- hFile = sceIoOpen("ms0:/PSP/TRFyuki.txt", O_CREAT|O_WRONLY|O_APPEND, 0777);
- sceIoWrite(hFile, greeting, sizeof(greeting) );
- sceIoClose(hFile);
- main(paf_addr);
- return;
- }
- int main(u32 paf_addr)
- {
- sceIoOpen = (void*)(paf_addr+0x0015EE70);
- sceIoWrite = (void*)(paf_addr+0x0015EE40);
- sceIoClose = (void*)(paf_addr+0x0015EE60);
- int hFile;
- char greeting[] = "GoodbyeWorld from TRFyuki's h.bin! -^_^-";
- hFile = sceIoOpen("ms0:/PSP/TRFyuki.txt", O_CREAT|O_WRONLY|O_APPEND, 0777);
- sceIoWrite(hFile, greeting, sizeof(greeting) );
- sceIoClose(hFile);
- return 0;
- }
Add Comment
Please, Sign In to add comment