@sie-js/apoxi-tool 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/lib/dwd.js +1 -1
- package/package.json +2 -2
package/dist/src/lib/dwd.js
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { sprintf } from "sprintf-js";
|
2
2
|
import unlockerElf from "#src/data/unlocker.elf.js";
|
3
|
-
import { loadELF } from "@sie-js/creampie";
|
4
3
|
import { retryAsyncOnError } from "#src/utils/retry.js";
|
5
4
|
const TCM_START = 0xFFFF0000;
|
6
5
|
const PRAM_IRQ_HANDLER = TCM_START + 0x38;
|
@@ -43,6 +42,7 @@ export async function unlockApoxiBootloader(dwd, options) {
|
|
43
42
|
options.debug("Boot already open! Unlock is not needed.");
|
44
43
|
return;
|
45
44
|
}
|
45
|
+
const { loadELF } = await import("@sie-js/creampie");
|
46
46
|
const bootMode = (await dwd.readMemory(BOOT_MODE, 4)).buffer.readUInt32LE(0);
|
47
47
|
options.debug(sprintf("Boot mode: %08X", bootMode));
|
48
48
|
options.debug(sprintf("Ram: %08X, %dM", ramAddr, ramSize / 1024 / 1024));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sie-js/apoxi-tool",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.5",
|
4
4
|
"description": "CLI tools for APOXI phones.",
|
5
5
|
"bin": {
|
6
6
|
"apoxi-tool": "./dist/src/cli.js"
|
@@ -31,7 +31,7 @@
|
|
31
31
|
"#src/*": "./dist/src/*"
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
|
-
"@sie-js/creampie": "^1.0.
|
34
|
+
"@sie-js/creampie": "^1.0.3",
|
35
35
|
"@types/debug": "^4.1.12",
|
36
36
|
"chalk": "^5.5.0",
|
37
37
|
"cli-progress": "^3.12.0",
|