ISFS_Read not returning buffer (HB)
#1

  1. heres my code:
         (src and dst are valid destinations("/shared2/wc24/misc.bin", "/misc.bin"), Exists returns x>=0)
  1. ISFS_Initialize();            
  1. s32 fd=ISFS_Open(src, ISFS_OPEN_READ); 
  1. s32 retr;            
  1. u8 *buffer;            
  1. if (Exists(fd)) {                
  1.    buffer=(u8*)memalign(32, 0x400);                
  1.    retr=ISFS_Read(fd, buffer, 0x400);                            
  1. }            
  1. else {                
  1.     return "I/O error.";            
  1. }            
  1. fatInitDefault();            
  1. ISFS_Close(fd);            
  1. std::ofstream bufo(dst, std::ios::binary);           
  1. bufo << buffer;            
  1. bufo.close();
Reply


Messages In This Thread
ISFS_Read not returning buffer (HB) - by jawa - 10-10-2021, 12:40 PM
RE: ISFS_Read not returning buffer (HB) - by Vega - 10-10-2021, 01:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)