Clean-up Config.cpp
This commit is contained in:
parent
989013168c
commit
ed242f8d90
2 changed files with 3 additions and 3 deletions
|
@ -31,7 +31,7 @@ BOOL LoadConfigData(CONFIG *conf)
|
|||
fclose(fp);
|
||||
|
||||
// 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));
|
||||
return FALSE;
|
||||
|
@ -49,7 +49,7 @@ void DefaultConfigData(CONFIG *conf)
|
|||
// conf->display_mode = 1;
|
||||
|
||||
// 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[1] = 1;
|
||||
conf->joystick_button[2] = 5;
|
||||
|
|
|
@ -10,7 +10,7 @@ struct CONFIG
|
|||
long attack_button_mode;
|
||||
long ok_button_mode;
|
||||
long display_mode;
|
||||
long bJoystick;
|
||||
BOOL bJoystick;
|
||||
long joystick_button[8];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue