Comparing version 4.0.19 to 4.0.20
@@ -81,2 +81,7 @@ /* tslint:disable */ | ||
static decrypt(course: Uint8Array): Uint8Array; | ||
/** | ||
* @param {Uint8Array} course | ||
* @returns {Uint8Array} | ||
*/ | ||
static encrypt(course: Uint8Array): Uint8Array; | ||
} | ||
@@ -83,0 +88,0 @@ /** |
@@ -327,2 +327,14 @@ import * as wasm from './cemu_smm_bg.wasm'; | ||
} | ||
/** | ||
* @param {Uint8Array} course | ||
* @returns {Uint8Array} | ||
*/ | ||
static encrypt(course) { | ||
const retptr = 8; | ||
const ret = wasm.course2_encrypt(retptr, passArray8ToWasm(course), WASM_VECTOR_LEN); | ||
const memi32 = getInt32Memory(); | ||
const v0 = getArrayU8FromWasm(memi32[retptr / 4 + 0], memi32[retptr / 4 + 1]).slice(); | ||
wasm.__wbindgen_free(memi32[retptr / 4 + 0], memi32[retptr / 4 + 1] * 1); | ||
return v0; | ||
} | ||
} | ||
@@ -329,0 +341,0 @@ /** |
@@ -7,3 +7,3 @@ { | ||
"description": "A utility library for Super Mario Maker and possibly Super Mario Maker 2 in the future to read and manipulate game files.", | ||
"version": "4.0.19", | ||
"version": "4.0.20", | ||
"license": "MIT", | ||
@@ -10,0 +10,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1446752
523