Fixed a bug with parameters

This commit is contained in:
Дмитрий Ценеков 2025-11-15 20:54:37 +03:00 committed by Fabian
parent 56b8c85e3f
commit 404c1e4ff0
2 changed files with 2 additions and 2 deletions

View file

@ -132,7 +132,7 @@ ServerFileStorageWrapper.prototype.load_from_server = function(sha256sum, file_s
*/
ServerFileStorageWrapper.prototype.read = async function(sha256sum, offset, count, file_size)
{
const data = await this.storage.read(sha256sum, offset, count);
const data = await this.storage.read(sha256sum, offset, count, file_size);
if(!data)
{
const full_file = await this.load_from_server(sha256sum, file_size);

View file

@ -436,7 +436,7 @@ V86.prototype.continue_init = async function(emulator, options)
if(base_url)
{
file_storage = new ServerFileStorageWrapper(file_storage, base_url, this.zstd_decompress);
file_storage = new ServerFileStorageWrapper(file_storage, base_url, this.zstd_decompress.bind(this));
}
settings.fs9p = this.fs9p = new FS(file_storage);