Created
April 8, 2023 08:53
-
-
Save qnighy/6c8f68e80316173ddfb601e8f041bfb0 to your computer and use it in GitHub Desktop.
RPGMV percent path patch
This file contains 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
--- rpg_core.js.orig 2023-04-08 17:40:07.800576175 +0900 | |
+++ rpg_core.js 2023-04-08 17:50:18.204989538 +0900 | |
@@ -1654,6 +1654,7 @@ | |
}; | |
Bitmap.request = function(url){ | |
+ url = url.replace("%", "%25"); | |
var bitmap = Object.create(Bitmap.prototype); | |
bitmap._defer = true; | |
bitmap.initialize(); | |
@@ -1665,6 +1666,7 @@ | |
}; | |
Bitmap.prototype._requestImage = function(url){ | |
+ url = url.replace("%", "%25"); | |
if(Bitmap._reuseImages.length !== 0){ | |
this._image = Bitmap._reuseImages.pop(); | |
}else{ | |
@@ -9318,4 +9320,4 @@ | |
}); | |
this._reloaders.length = 0; | |
} | |
-}; | |
\ No newline at end of file | |
+}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment