diff --git a/src/config.c b/src/config.c index 951630cb8d..ff256fcfc0 100644 --- a/src/config.c +++ b/src/config.c @@ -228,6 +228,7 @@ static void config_create_default(char *path) fprintf(fp, "[general]\n"); fprintf(fp, "game_path = %s\n", gConfig.game_path); fprintf(fp, "screenshot_format = PNG\n"); + fprintf(fp, "play_intro = false\n"); fclose(fp); } @@ -256,6 +257,8 @@ static void config_parse_settings(FILE *fp) } else { gConfig.screenshot_format = SCREENSHOT_FORMAT_BMP; } + } else if (strcmp(setting, "play_intro") == 0) { + gConfig.play_intro = (strcmp(value, "true") == 0); } } } diff --git a/src/config.h b/src/config.h index e08966cf3c..2ed8b08dff 100644 --- a/src/config.h +++ b/src/config.h @@ -81,6 +81,7 @@ void config_save(); // New config format typedef struct configuration { + uint8 play_intro; uint8 screenshot_format; char game_path[MAX_PATH]; } configuration_t; diff --git a/src/rct2.c b/src/rct2.c index a381fe1928..25b51bc217 100644 --- a/src/rct2.c +++ b/src/rct2.c @@ -142,8 +142,7 @@ void rct2_init() title_load(); gfx_clear(RCT2_ADDRESS(RCT2_ADDRESS_SCREEN_DPI, rct_drawpixelinfo), 10); - // RCT2_GLOBAL(RCT2_ADDRESS_RUN_INTRO_TICK_PART, int) = 8; - RCT2_GLOBAL(RCT2_ADDRESS_RUN_INTRO_TICK_PART, int) = 0; + RCT2_GLOBAL(RCT2_ADDRESS_RUN_INTRO_TICK_PART, int) = gConfig.play_intro ? 8 : 0; } // rct2: 0x00683499