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
|
@ -166,10 +166,20 @@ static void mriBindingInit() {
|
|||
|
||||
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();
|
||||
|
|
|
@ -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)
|
||||
//
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -146,6 +146,7 @@ struct Config {
|
|||
bool enabled;
|
||||
} yjit;
|
||||
|
||||
int tilemapVersion;
|
||||
bool dumpAtlas;
|
||||
|
||||
// Keybinding action name mappings
|
||||
|
|
Loading…
Add table
Reference in a new issue