Does anyone know how to sceIoOpen a file in the current directory? Or other suggestions on how to load a file from the PBP directory that don't involve hardcoding the path from ms0:/ all the way up?
thanks,
scott
			
			
									
									
						Loading file from "current" directory
From Vectoroids:
Then just use sprintf(filename, "%s/%s", psp_full_path, local_path).
			
			
									
									
						Code: Select all
  /* Used for building a path to data files. */
  char psp_filename[1024 + 1];
  /* Get the full path to EBOOT.PBP. */
  char psp_full_path[1024 + 1];
  char *psp_eboot_path;
  
  strncpy(psp_full_path, argv[0], sizeof(psp_full_path) - 1);
  psp_full_path[sizeof(psp_full_path) - 1] = '\0';
  
  psp_eboot_path = strrchr(psp_full_path, '/');
  if (psp_eboot_path != NULL)
    {
      *psp_eboot_path = '\0';
    }