Skip to content

Commit

Permalink
I think all the decryption issue should be fixed now for termina, tim…
Browse files Browse the repository at this point in the history
…e to test on funger 1
  • Loading branch information
mattieFM committed Jan 25, 2025
1 parent 3d8c8dc commit 489404f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/mods/commonLibs/_common/compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ Bitmap.prototype.compatabilityLoad = function (url, force = false) {

rpgmakerWantsToDecrypt = !Decrypter.checkImgIgnore(url) && Decrypter.hasEncryptedImages;
modmanagerWantsToDecrypt = fs.existsSync(rpgMVPUrl) && !MATTIE.compat.pauseDecrypt;
cannotUseEncrypted = !fs.existsSync(rpgMVPUrl) && fs.existsSync(pngUrl)

console.log(`modmanger want to decrypt:${modmanagerWantsToDecrypt}\nrpgmakerwantstodecrypt${rpgmakerWantsToDecrypt}`);
if ((modmanagerWantsToDecrypt && rpgmakerWantsToDecrypt) || force || (fs.existsSync(rpgMVPUrl) && !fs.existsSync(pngUrl))) {
if (((rpgmakerWantsToDecrypt) || force || (fs.existsSync(rpgMVPUrl) && !fs.existsSync(pngUrl))) && !MATTIE.compat.pauseDecrypt && !cannotUseEncrypted) {
if (Utils.isNwjs()) {
this._loadingState = 'decrypting';
Decrypter.decryptImg(pngUrl, this);
Expand Down

0 comments on commit 489404f

Please sign in to comment.