- InitImageList(image_config, image_config_suffix, NUM_IMAGE_FILES);
- InitSoundList(sound_config, sound_config_suffix, NUM_SOUND_FILES);
+ static struct ConfigInfo action_suffix[NUM_ACTIONS + 1];
+ static struct ConfigInfo direction_suffix[NUM_DIRECTIONS + 1];
+ static struct ConfigInfo empty[1];
+ int i;
+
+ for (i=0; i<NUM_ACTIONS + 1; i++)
+ action_suffix[i].token = element_action_info[i].suffix;
+ for (i=0; i<NUM_DIRECTIONS + 1; i++)
+ direction_suffix[i].token = element_direction_info[i].suffix;
+ empty[0].token = NULL;
+
+ InitImageList(image_config, NUM_IMAGE_FILES, image_config_suffix,
+ action_suffix, direction_suffix);
+ InitSoundList(sound_config, NUM_SOUND_FILES, sound_config_suffix,
+ action_suffix, empty);