X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ffiles.c;h=bd631a46fb31f38fb395d7d83246f33da60932c0;hb=c8e2e1b872d216f1ed23bac5d446b5a14d5d60ad;hp=fb0c740cb3f117a4622b29faefc851ba485697cb;hpb=7f33353a6e8ce4dc9a3b7a604a4c7deb836544f7;p=rocksndiamonds.git diff --git a/src/files.c b/src/files.c index fb0c740c..bd631a46 100644 --- a/src/files.c +++ b/src/files.c @@ -921,6 +921,11 @@ static struct LevelFileConfigInfo chunk_config_ELEM[] = &li.mm_ball_content, EL_EMPTY, NULL, &li.num_mm_ball_contents, 8, MAX_MM_BALL_CONTENTS }, + { + EL_MM_GRAY_BALL, -1, + TYPE_BOOLEAN, CONF_VALUE_8_BIT(1), + &li.rotate_mm_ball_content, TRUE + }, { EL_MM_STEEL_BLOCK, -1, @@ -4186,6 +4191,7 @@ static void CopyNativeLevel_RND_to_MM(struct LevelInfo *level) level_mm->num_ball_contents = level->num_mm_ball_contents; level_mm->ball_choice_mode = level->mm_ball_choice_mode; + level_mm->rotate_ball_content = level->rotate_mm_ball_content; for (i = 0; i < level->num_mm_ball_contents; i++) level_mm->ball_content[i] = @@ -4237,6 +4243,7 @@ static void CopyNativeLevel_MM_to_RND(struct LevelInfo *level) level->num_mm_ball_contents = level_mm->num_ball_contents; level->mm_ball_choice_mode = level_mm->ball_choice_mode; + level->rotate_mm_ball_content = level_mm->rotate_ball_content; for (i = 0; i < level->num_mm_ball_contents; i++) level->mm_ball_content[i] = @@ -10371,6 +10378,14 @@ static struct TokenInfo options_setup_tokens[] = TYPE_BOOLEAN, &setup.options.verbose, "options.verbose" }, + { + TYPE_BOOLEAN, + &setup.options.debug, "options.debug" + }, + { + TYPE_STRING, + &setup.options.debug_mode, "options.debug_mode" + }, }; static void setSetupInfoToDefaults(struct SetupInfo *si) @@ -10642,6 +10657,8 @@ static void setSetupInfoToDefaults(struct SetupInfo *si) si->debug.xsn_percent = 0; si->options.verbose = FALSE; + si->options.debug = FALSE; + si->options.debug_mode = getStringCopy(ARG_UNDEFINED_STRING); #if defined(PLATFORM_ANDROID) si->fullscreen = TRUE; @@ -12911,7 +12928,7 @@ static boolean sound_info_listed(struct MusicFileInfo *list, char *basename) void LoadMusicInfo(void) { - char *music_directory = getCustomMusicDirectory(); + char *music_directory = getCustomMusicDirectory_NoConf(); int num_music = getMusicListSize(); int num_music_noconf = 0; int num_sounds = getSoundListSize();