Add texthook_suppress option

For suppressing text hook on specified scenario pages.
This commit is contained in:
kichikuou
2024-12-06 10:24:36 +09:00
parent 1e7a59f9cd
commit 0b04f5f334
7 changed files with 47 additions and 0 deletions
+4
View File
@@ -137,6 +137,8 @@ Config::Config(int argc, char *argv[])
scanline = true;
else if (strcmp(argv[i], "-texthook") == 0)
texthook_mode = parse_texthook_mode(argv[++i]);
else if (strcmp(argv[i], "-texthook_suppress") == 0)
texthook_suppressions = argv[++i];
}
}
@@ -197,6 +199,8 @@ void Config::load_ini()
scanline = to_bool(val, lineno);
else if (!strcasecmp(key, "texthook"))
texthook_mode = parse_texthook_mode(val, lineno);
else if (!strcasecmp(key, "texthook_suppress"))
texthook_suppressions = val;
else
WARNING(INIFILENAME ":%d unknown key '%s'", lineno, key);
} else if (current_section == STRING) {