Advertisement
xerpi

Untitled

Jan 8th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.48 KB | None | 0 0
  1. #include <pspdebug.h>
  2. #include <pspkernel.h>
  3. #include <pspgu.h>
  4. #include <stdio.h>
  5. #include <stdint.h>
  6. #include <malloc.h>
  7. #include <stdlib.h>
  8. #include <psptypes.h>
  9. #include <pspiofilemgr.h>
  10.  
  11. PSP_MODULE_INFO("dumper", PSP_MODULE_KERNEL, 1, 1);
  12.  
  13. int main(void)
  14. {
  15.    u32 uResult = 0;
  16.    SceUID fd = sceIoOpen("ms0:/dump.bin", PSP_O_WRONLY | PSP_O_CREAT, 0777);
  17.    if(fd) {
  18.     uResult = sceIoWrite(fd, (void*)0x8B000000, 0x00F000);
  19.     sceIoClose(fd);
  20.    }
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement