Added Download file, play for homebrews and ZIP explorer.

This commit is contained in:
2026-06-16 18:35:01 +02:00
parent 7e1e26f20b
commit 279160c1cb
12 changed files with 215 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
/** @typedef { import('types/UploadchunkResponse.js').UploadchunkResponse} UploadchunkResponse */
export const CHUNK_SIZE = 8192;
export const CHUNK_SIZE = 8192 * 1024;
const PATCH_EXTENSIONS = new Set([
'ips', 'bps', 'ups', 'aps', 'ppf', 'xdelta', "zip"
@@ -72,6 +72,15 @@ export function FSFileData(name, totalChunks, rawFile ) {
*/
state: 'public',
file_explorer: null,
file_explorer_files: null,
/**
* For files already uploaded, download URL.
*/
download_url: null,
can_be_online_patched: PATCH_EXTENSIONS.has(extension),
/**