mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
Fixed a bug with parameters
This commit is contained in:
parent
56b8c85e3f
commit
404c1e4ff0
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue