mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-12 01:08:16 +03:00
Add texthook_suppress option
For suppressing text hook on specified scenario pages.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user