Last active
April 26, 2025 11:37
-
-
Save TomieAi/e5d003eccf28d991578a46c7cb5ba84c to your computer and use it in GitHub Desktop.
bypass js xianxinglu-of-the-scarlet-moon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scene_Boot.prototype.setEncryptionInfo = function() { | |
const hasEncryptedImages = true; | |
const hasEncryptedAudio = true; | |
const encryptionKey = 'e10adc3949ba59abbe56e057f20f883e'; | |
Utils.setEncryptionInfo(hasEncryptedImages, hasEncryptedAudio, encryptionKey); | |
}; | |
Utils.setEncryptionInfo = function(hasEncryptedImages, hasEncryptedAudio, encryptionKey) { | |
this._hasEncryptedImages = hasEncryptedImages; | |
this._hasEncryptedAudio = hasEncryptedAudio; | |
this._encryptionKey = encryptionKey; | |
}; | |
DataManager.loadMapData = function(mapId) { | |
if (mapId > 0) { | |
const filename = `Map${mapId.padZero(3)}.json`; | |
this.loadDataFile('$dataMap', filename, filename); | |
} else { | |
this.makeEmptyMap(); | |
} | |
}; | |
DataManager.onXhrLoad = function(xhr, variableName, filename, url, src) { | |
if (xhr.status < 400) { | |
if ( | |
src !== 'Actors.json' && | |
src !== 'Animations.json' && | |
src !== 'Armors.json' && | |
src !== 'Classes.json' && | |
src !== 'CommonEvents.json' && | |
src !== 'Enemies.json' && | |
src !== 'Items.json' && | |
src !== 'MapInfos.json' && | |
src !== 'Skills.json' && | |
src !== 'States.json' && | |
src !== 'System.json' && | |
src !== 'Tilesets.json' && | |
src !== 'Troops.json' && | |
src !== 'Weapons.json' && | |
variableName !== '$dataMap' | |
) { | |
window[variableName] = JSON.parse(xhr.responseText); | |
} else { | |
window[variableName] = JSON.parse(xhr.responseText); | |
} | |
this.onLoad(window[variableName]); | |
} else { | |
this.onXhrError(variableName, filename, url); | |
} | |
}; | |
DataManager.loadDataFile = function(variableName, filename, src) { | |
const xhr = new XMLHttpRequest(); | |
const url = 'data/' + filename; | |
window[variableName] = null; | |
xhr.open('GET', url); | |
xhr.overrideMimeType('application/json'); | |
xhr.onload = () => this.onXhrLoad(xhr, variableName, filename, url, src); | |
xhr.onerror = () => this.onXhrError(variableName, filename, url); | |
xhr.send(); | |
}; | |
DataManager.loadDatabase = function() { | |
const isTestMode = this.isBattleTest() || this.isEventTest(); | |
const prefix = isTestMode ? 'Test_' : ''; | |
for (const file of this._databaseFiles) { | |
this.loadDataFile(file.name, prefix + file.src, file.src); | |
} | |
if (this.isEventTest()) { | |
this.loadDataFile('$testEvent', prefix + 'Event.json'); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment