mirror of
https://github.com/Team-Resurgent/webMAN-MOD.git
synced 2026-08-15 11:18:26 -07:00
- Reduced memory footprint in 10KB: external netiso/rawiso plugins now are required - Fixed ftp listing of NTFS directories - Fixed regression in mount search command - Added sys_admin check to several web commands - Added L2+R2 check to skip content scanning when system starts - Added is_pressed() function to simplify code of combo check - Changed script wait command to sleep + thread yield. - Moved code to www_isadmin.h & cmd/mount_search.h - Fixed issue in ps3mapi_find_offset() - Fixed white line in bmp of XMB screenshots
33 lines
1005 B
C
33 lines
1005 B
C
#ifdef USE_NTFS
|
|
// /mount.ps3/dev_ntfs* => convert ntfs path to cached path
|
|
if(islike(param, "/mount") && is_ntfs_path(param + 10))
|
|
{
|
|
char *filename = param + 10; change_cue2iso(filename);
|
|
sprintf(header, "%s%s", filename, ".ntfs[");
|
|
int flen = get_name(filename, header, GET_WMTMP);
|
|
|
|
for(int i = 2; i < 9; i++) // "PS3ISO", "BDISO", "DVDISO", "PS2ISO", "PSXISO", "PSXGAMES", "PSPISO"
|
|
if(strstr(header, paths[i])) {sprintf(filename + flen, ".ntfs[%s]", paths[i]); break;}
|
|
|
|
if(not_exists(filename))
|
|
{
|
|
check_ntfs_volumes();
|
|
prepNTFS(0);
|
|
}
|
|
}
|
|
#endif
|
|
if(islike(param, "/mount.ps3?"))
|
|
{
|
|
// /mount.ps3?<query> search game & mount if only 1 match is found
|
|
|
|
if(islike(param, "/mount.ps3?http"))
|
|
{
|
|
char *url = param + 11;
|
|
do_umount(false); open_browser(url, 0);
|
|
keep_alive = http_response(conn_s, header, param, CODE_HTTP_OK, url);
|
|
goto exit_handleclient_www;
|
|
}
|
|
else
|
|
{memcpy(header, "/index.ps3", 10); memcpy(param, "/index.ps3", 10); auto_mount = true;}
|
|
}
|