This commit is contained in:
Nathan-MV 2025-03-21 17:40:28 +01:00 committed by GitHub
commit 5c615220de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 24 additions and 2 deletions

View file

@ -163,13 +163,23 @@ static void mriBindingInit() {
spriteBindingInit();
viewportBindingInit();
planeBindingInit();
if (rgssVer == 1) {
windowBindingInit();
tilemapBindingInit();
} else {
windowVXBindingInit();
}
if (shState->config().tilemapVersion == 1) {
tilemapBindingInit();
} else if (shState->config().tilemapVersion == 2) {
tilemapVXBindingInit();
} else {
if (rgssVer == 1) {
tilemapBindingInit();
} else {
tilemapVXBindingInit();
}
}
inputBindingInit();

View file

@ -531,6 +531,15 @@
// },
// Use alternate tilemap class independent of RGSS version.
// 0: Match RGSS version
// 1: XP
// 2: VX/Ace
// (default: 0)
//
// "tilemapVersion": 0
// Dump tile atlas (for debugging purposes)
// (default: false)
//

View file

@ -197,6 +197,7 @@ void Config::read(int argc, char *argv[]) {
{"JITMaxCache", 100},
{"JITMinCalls", 10000},
{"YJITEnable", false},
{"tilemapVersion", 0},
{"dumpAtlas", false},
{"bindingNames", json::object({
{"a", "A"},
@ -314,6 +315,7 @@ try { exp } catch (...) {}
SET_OPT_CUSTOMKEY(BGM.trackCount, BGMTrackCount, integer);
SET_STRINGOPT(customScript, customScript);
SET_OPT(useScriptNames, boolean);
SET_OPT(tilemapVersion, integer);
SET_OPT(dumpAtlas, boolean);
fillStringVec(opts["preloadScript"], preloadScripts);

View file

@ -146,6 +146,7 @@ struct Config {
bool enabled;
} yjit;
int tilemapVersion;
bool dumpAtlas;
// Keybinding action name mappings