Clean-up Config.cpp

This commit is contained in:
Clownacy 2019-11-15 21:03:20 +00:00
parent 989013168c
commit ed242f8d90
2 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ BOOL LoadConfigData(CONFIG *conf)
fclose(fp); fclose(fp);
// Check if version is not correct, and return if it failed // Check if version is not correct, and return if it failed
if (fread_result != 1 || strcmp(conf->proof, config_magic) != 0) if (fread_result != 1 || strcmp(conf->proof, config_magic))
{ {
memset(conf, 0, sizeof(CONFIG)); memset(conf, 0, sizeof(CONFIG));
return FALSE; return FALSE;
@ -49,7 +49,7 @@ void DefaultConfigData(CONFIG *conf)
// conf->display_mode = 1; // conf->display_mode = 1;
// Reset joystick settings (as these can't simply be set to 0) // Reset joystick settings (as these can't simply be set to 0)
conf->bJoystick = 1; conf->bJoystick = TRUE;
conf->joystick_button[0] = 2; conf->joystick_button[0] = 2;
conf->joystick_button[1] = 1; conf->joystick_button[1] = 1;
conf->joystick_button[2] = 5; conf->joystick_button[2] = 5;

View file

@ -10,7 +10,7 @@ struct CONFIG
long attack_button_mode; long attack_button_mode;
long ok_button_mode; long ok_button_mode;
long display_mode; long display_mode;
long bJoystick; BOOL bJoystick;
long joystick_button[8]; long joystick_button[8];
}; };