mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-26 03:01:50 +01:00
73 lines
1.9 KiB
C
73 lines
1.9 KiB
C
/****************************************************************************
|
|
* config.c
|
|
*
|
|
* Genesis Plus GX configuration file support
|
|
*
|
|
* code by Eke-Eke (2008)
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*
|
|
***************************************************************************/
|
|
|
|
#ifndef _CONFIG_H_
|
|
#define _CONFIG_H_
|
|
|
|
/****************************************************************************
|
|
* Config Option
|
|
*
|
|
****************************************************************************/
|
|
typedef struct
|
|
{
|
|
char version[15];
|
|
int32 psg_preamp;
|
|
int32 fm_preamp;
|
|
uint8 boost;
|
|
uint8 filter;
|
|
uint8 hq_fm;
|
|
uint8 fm_core;
|
|
int8 sram_auto;
|
|
int8 freeze_auto;
|
|
uint8 region_detect;
|
|
uint8 force_dtack;
|
|
uint8 bios_enabled;
|
|
int16 xshift;
|
|
int16 yshift;
|
|
int16 xscale;
|
|
int16 yscale;
|
|
uint8 tv_mode;
|
|
uint8 aspect;
|
|
uint8 overscan;
|
|
uint8 render;
|
|
uint8 ntsc;
|
|
uint8 bilinear;
|
|
uint16 pad_keymap[4][MAX_KEYS];
|
|
uint32 wpad_keymap[4*3][MAX_KEYS];
|
|
t_input_config input[MAX_DEVICES];
|
|
uint8 gun_cursor;
|
|
uint8 invert_mouse;
|
|
} t_config;
|
|
|
|
/* Global data */
|
|
t_config config;
|
|
|
|
|
|
extern void config_save();
|
|
extern void config_load();
|
|
extern void set_config_defaults(void);
|
|
|
|
|
|
#endif /* _CONFIG_H_ */
|
|
|