SHARE
TWEET

Untitled

a guest May 19th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. case IOCTL_ES_LOGFILE:
  2.         {
  3.             //*(u32*)(v[0].data) = 5;
  4.             //dbgprintf("ES: DI: %s\n", msg->ioctlv.vec);
  5.             s32 fd = IOS_Open("/DI_log.txt", 3);
  6.             if(fd >= 0)
  7.             {
  8.                 IOS_Seek( fd, 0, SEEK_END );
  9.                 IOS_Write( fd, (u8*)(msg->ioctlv.argv), msg->ioctlv.argc_in);
  10.                 IOS_Close(fd);
  11.             }  
  12.             ret = ES_SUCCESS;
  13.             //dbgprintf("ES:Logfile(%s, %d):%d\n",  (char*)v[0].data, v[0].len, ret );
  14.         } break;
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top