mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-04-21 21:52:04 +02:00
Merge 6c81a92d94
into 68a344afcf
This commit is contained in:
commit
5c615220de
4 changed files with 24 additions and 2 deletions
|
@ -163,13 +163,23 @@ static void mriBindingInit() {
|
||||||
spriteBindingInit();
|
spriteBindingInit();
|
||||||
viewportBindingInit();
|
viewportBindingInit();
|
||||||
planeBindingInit();
|
planeBindingInit();
|
||||||
|
|
||||||
if (rgssVer == 1) {
|
if (rgssVer == 1) {
|
||||||
windowBindingInit();
|
windowBindingInit();
|
||||||
tilemapBindingInit();
|
|
||||||
} else {
|
} else {
|
||||||
windowVXBindingInit();
|
windowVXBindingInit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (shState->config().tilemapVersion == 1) {
|
||||||
|
tilemapBindingInit();
|
||||||
|
} else if (shState->config().tilemapVersion == 2) {
|
||||||
tilemapVXBindingInit();
|
tilemapVXBindingInit();
|
||||||
|
} else {
|
||||||
|
if (rgssVer == 1) {
|
||||||
|
tilemapBindingInit();
|
||||||
|
} else {
|
||||||
|
tilemapVXBindingInit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inputBindingInit();
|
inputBindingInit();
|
||||||
|
|
|
@ -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)
|
// Dump tile atlas (for debugging purposes)
|
||||||
// (default: false)
|
// (default: false)
|
||||||
//
|
//
|
||||||
|
|
|
@ -197,6 +197,7 @@ void Config::read(int argc, char *argv[]) {
|
||||||
{"JITMaxCache", 100},
|
{"JITMaxCache", 100},
|
||||||
{"JITMinCalls", 10000},
|
{"JITMinCalls", 10000},
|
||||||
{"YJITEnable", false},
|
{"YJITEnable", false},
|
||||||
|
{"tilemapVersion", 0},
|
||||||
{"dumpAtlas", false},
|
{"dumpAtlas", false},
|
||||||
{"bindingNames", json::object({
|
{"bindingNames", json::object({
|
||||||
{"a", "A"},
|
{"a", "A"},
|
||||||
|
@ -314,6 +315,7 @@ try { exp } catch (...) {}
|
||||||
SET_OPT_CUSTOMKEY(BGM.trackCount, BGMTrackCount, integer);
|
SET_OPT_CUSTOMKEY(BGM.trackCount, BGMTrackCount, integer);
|
||||||
SET_STRINGOPT(customScript, customScript);
|
SET_STRINGOPT(customScript, customScript);
|
||||||
SET_OPT(useScriptNames, boolean);
|
SET_OPT(useScriptNames, boolean);
|
||||||
|
SET_OPT(tilemapVersion, integer);
|
||||||
SET_OPT(dumpAtlas, boolean);
|
SET_OPT(dumpAtlas, boolean);
|
||||||
|
|
||||||
fillStringVec(opts["preloadScript"], preloadScripts);
|
fillStringVec(opts["preloadScript"], preloadScripts);
|
||||||
|
|
|
@ -146,6 +146,7 @@ struct Config {
|
||||||
bool enabled;
|
bool enabled;
|
||||||
} yjit;
|
} yjit;
|
||||||
|
|
||||||
|
int tilemapVersion;
|
||||||
bool dumpAtlas;
|
bool dumpAtlas;
|
||||||
|
|
||||||
// Keybinding action name mappings
|
// Keybinding action name mappings
|
||||||
|
|
Loading…
Add table
Reference in a new issue