mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-05 15:09:26 +02:00
[Misc] Fix import in decrypt-save.js (#6149)
This commit is contained in:
parent
bb46ba9f60
commit
4f259e2c2f
@ -2,7 +2,9 @@
|
||||
|
||||
// biome-ignore lint/performance/noNamespaceImport: This is how you import fs from node
|
||||
import * as fs from "node:fs";
|
||||
import { AES, enc } from "crypto-js";
|
||||
import crypto_js from "crypto-js";
|
||||
|
||||
const { AES, enc } = crypto_js;
|
||||
|
||||
const SAVE_KEY = "x0i2O7WRiANTqPmZ";
|
||||
|
||||
@ -144,7 +146,7 @@ function main() {
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
writeToFile(destPath, decrypt);
|
||||
writeToFile(args[1], decrypt);
|
||||
}
|
||||
|
||||
main();
|
||||
|
Loading…
Reference in New Issue
Block a user