(url)
| 1517 | // FUNCTIONS FOR STAGE: PATCH KERNEL |
| 1518 | |
| 1519 | async function get_patches(url) { |
| 1520 | const response = await fetch(url); |
| 1521 | if (!response.ok) { |
| 1522 | throw Error( |
| 1523 | `Network response was not OK, status: ${response.status}\n` |
| 1524 | + `failed to fetch: ${url}`); |
| 1525 | } |
| 1526 | return response.arrayBuffer(); |
| 1527 | } |
| 1528 | |
| 1529 | async function patch_kernel(kbase, kmem, p_ucred, restore_info) { |
| 1530 | if (!is_ps4) { |