mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-04 17:43:45 +00:00
1. Fixed bug with clipboard.nativeAddCompressedModule for large files
2. Updated service-manager for better OpenBSD support
This commit is contained in:
@@ -80,7 +80,8 @@ function nativeAddCompressedModule(name)
|
||||
ret += ('memcpy_s(_' + name.split('-').join('') + ' + ' + i + ', ' + (tmp.length - i) + ', "' + chunk + '", ' + chunk.length + ');\n');
|
||||
i += chunk.length;
|
||||
}
|
||||
ret += ('ILibDuktape_AddCompressedModule(ctx, "' + name + '", _' + name.split('-').join('') + valuex + ');\n');
|
||||
valuex = valuex.split("'").join('"');
|
||||
ret += ('ILibDuktape_AddCompressedModuleEx(ctx, "' + name + '", _' + name.split('-').join('') + valuex + ');\n');
|
||||
ret += ('free(_' + name.split('-').join('') + ');\n');
|
||||
}
|
||||
module.exports(ret);
|
||||
|
||||
Reference in New Issue
Block a user