MCPcopy Create free account
hub / github.com/aldostools/webMAN-MOD / mount_thread

Function mount_thread

include/mount/mount.h:1481–1850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1479/***********************************************/
1480
1481static void mount_thread(u64 action)
1482{
1483 bool ret = false;
1484 bool multiCD = false; // mount_lastgames.h
1485
1486 automount = 0;
1487
1488 // --------------------------------------------
1489 // show message if syscalls are fully disabled
1490 // --------------------------------------------
1491 #ifdef COBRA_ONLY
1492 if(syscalls_removed && peekq(TOC) != SYSCALLS_UNAVAILABLE) {syscalls_removed = false; disable_signin_dialog();}
1493
1494 if(syscalls_removed || peekq(TOC) == SYSCALLS_UNAVAILABLE)
1495 {
1496 syscalls_removed = true;
1497 { PS3MAPI_ENABLE_ACCESS_SYSCALL8 }
1498
1499 int ret_val = NONE; { system_call_2(SC_COBRA_SYSCALL8, SYSCALL8_OPCODE_PS3MAPI, PS3MAPI_OPCODE_PCHECK_SYSCALL8); ret_val = (int)p1;}
1500
1501 if(ret_val < 0) { show_msg_with_icon(ICON_EXCLAMATION, STR_CFWSYSALRD); { PS3MAPI_DISABLE_ACCESS_SYSCALL8 } goto finish; }
1502 if(ret_val > 1) { system_call_3(SC_COBRA_SYSCALL8, SYSCALL8_OPCODE_PS3MAPI, PS3MAPI_OPCODE_PDISABLE_SYSCALL8, 1); }
1503 }
1504 else if(!cobra_version)
1505 { show_error("[nonCobra]"); goto finish; }
1506 #else
1507
1508 if(syscalls_removed || peekq(TOC) == SYSCALLS_UNAVAILABLE) { show_msg_with_icon(ICON_EXCLAMATION, STR_CFWSYSALRD); goto finish; }
1509
1510 #endif
1511
1512 // -----------------
1513 // fix mount errors
1514 // -----------------
1515
1516 ps2_classic_mounted = false;
1517 if(fan_ps2_mode) reset_fan_mode();
1518
1519 // -----------------------------
1520 // fix mount errors (patch lv2)
1521 // -----------------------------
1522
1523 patch_lv2();
1524
1525
1526 // ---------------------------------------
1527 // exit if mounting a path from /dev_bdvd
1528 // ---------------------------------------
1529
1530 if(islike(_path0, "/dev_bdvd")) {do_umount(false); goto finish;}
1531
1532
1533 // ---------------
1534 // init variables
1535 // ---------------
1536
1537 char netid = NULL;
1538 char _path[STD_PATH_LEN], title_id[TITLEID_LEN];

Callers

nothing calls this directly

Calls 15

disable_signin_dialogFunction · 0.85
show_msg_with_iconFunction · 0.85
show_errorFunction · 0.85
reset_fan_modeFunction · 0.85
patch_lv2Function · 0.85
is_extFunction · 0.85
installPKGFunction · 0.85
ledFunction · 0.85
wait_for_xmbFunction · 0.85
open_browserFunction · 0.85
parse_scriptFunction · 0.85
get_flagFunction · 0.85

Tested by

no test coverage detected