- fprintf(file, "\n");
-
- fprintf(file, "%s\n",
- getSetupEntry("", SETUP_TOKEN_SOUND,
- setup.sound));
- fprintf(file, "%s\n",
- getSetupEntry("", SETUP_TOKEN_SOUND_LOOPS,
- setup.sound_loops));
- fprintf(file, "%s\n",
- getSetupEntry("", SETUP_TOKEN_SOUND_MUSIC,
- setup.sound_music));
- fprintf(file, "%s\n",
- getSetupEntry("", SETUP_TOKEN_SOUND_SIMPLE,
- setup.sound_simple));
- fprintf(file, "%s\n",
- getSetupEntry("", SETUP_TOKEN_TOONS,
- setup.toons));
- fprintf(file, "%s\n",
- getSetupEntry("", SETUP_TOKEN_DIRECT_DRAW,
- setup.direct_draw));
- fprintf(file, "%s\n",
- getSetupEntry("", SETUP_TOKEN_SCROLL_DELAY,
- setup.scroll_delay));
- fprintf(file, "%s\n",
- getSetupEntry("", SETUP_TOKEN_SOFT_SCROLLING,
- setup.soft_scrolling));
- fprintf(file, "%s\n",
- getSetupEntry("", SETUP_TOKEN_FADING,
- setup.fading));
- fprintf(file, "%s\n",
- getSetupEntry("", SETUP_TOKEN_AUTORECORD,
- setup.autorecord));
- fprintf(file, "%s\n",
- getSetupEntry("", SETUP_TOKEN_QUICK_DOORS,
- setup.quick_doors));
-
- fprintf(file, "\n");
-
- fprintf(file, "%s\n",
- getFormattedSetupEntry(TOKEN_STR_ALIAS_NAME,
- setup.alias_name));
-
- for (i=0; i<MAX_PLAYERS; i++)
- {
- char prefix[30];
-
- sprintf(prefix, "%s%d", TOKEN_STR_PLAYER_PREFIX, i + 1);
-
- fprintf(file, "\n");
-
- fprintf(file, "%s\n",
- getSetupEntry(prefix, SETUP_TOKEN_USE_JOYSTICK,
- setup.input[i].use_joystick));
-
- fprintf(file, "%s%s: %s\n", prefix,
- getSetupToken(SETUP_TOKEN_JOY_DEVICE_NAME),
- setup.input[i].joy.device_name);
-
- fprintf(file, "%s%s: %d\n", prefix,
- getSetupToken(SETUP_TOKEN_JOY_XLEFT),
- setup.input[i].joy.xleft);
- fprintf(file, "%s%s: %d\n", prefix,
- getSetupToken(SETUP_TOKEN_JOY_XMIDDLE),
- setup.input[i].joy.xmiddle);
- fprintf(file, "%s%s: %d\n", prefix,
- getSetupToken(SETUP_TOKEN_JOY_XRIGHT),
- setup.input[i].joy.xright);
- fprintf(file, "%s%s: %d\n", prefix,
- getSetupToken(SETUP_TOKEN_JOY_YUPPER),
- setup.input[i].joy.yupper);
- fprintf(file, "%s%s: %d\n", prefix,
- getSetupToken(SETUP_TOKEN_JOY_YMIDDLE),
- setup.input[i].joy.ymiddle);
- fprintf(file, "%s%s: %d\n", prefix,
- getSetupToken(SETUP_TOKEN_JOY_YLOWER),
- setup.input[i].joy.ylower);
- fprintf(file, "%s%s: %s\n", prefix,
- getSetupToken(SETUP_TOKEN_JOY_SNAP),
- getJoyNameFromJoySymbol(setup.input[i].joy.snap));
- fprintf(file, "%s%s: %s\n", prefix,
- getSetupToken(SETUP_TOKEN_JOY_BOMB),
- getJoyNameFromJoySymbol(setup.input[i].joy.bomb));
-
- fprintf(file, "%s\n",
- getSetupEntryWithComment(prefix, SETUP_TOKEN_KEY_LEFT,
- setup.input[i].key.left));
- fprintf(file, "%s\n",
- getSetupEntryWithComment(prefix, SETUP_TOKEN_KEY_RIGHT,
- setup.input[i].key.right));
- fprintf(file, "%s\n",
- getSetupEntryWithComment(prefix, SETUP_TOKEN_KEY_UP,
- setup.input[i].key.up));
- fprintf(file, "%s\n",
- getSetupEntryWithComment(prefix, SETUP_TOKEN_KEY_DOWN,
- setup.input[i].key.down));
- fprintf(file, "%s\n",
- getSetupEntryWithComment(prefix, SETUP_TOKEN_KEY_SNAP,
- setup.input[i].key.snap));
- fprintf(file, "%s\n",
- getSetupEntryWithComment(prefix, SETUP_TOKEN_KEY_BOMB,
- setup.input[i].key.bomb));
- }