2008-12-11 18:38:29 +01:00
|
|
|
/****************************************************************************
|
|
|
|
* config.c
|
|
|
|
*
|
|
|
|
* Genesis Plus GX configuration file support
|
|
|
|
*
|
2009-05-13 16:26:55 +02:00
|
|
|
* Eke-Eke (2008)
|
2008-12-11 18:38:29 +01:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*
|
|
|
|
***************************************************************************/
|
2008-08-07 14:26:07 +02:00
|
|
|
|
|
|
|
#ifndef _CONFIG_H_
|
|
|
|
#define _CONFIG_H_
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Config Option
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
typedef struct
|
|
|
|
{
|
2009-04-23 03:01:07 +02:00
|
|
|
char version[16];
|
2010-05-07 20:25:27 +02:00
|
|
|
uint8 hq_fm;
|
2008-08-21 22:34:00 +02:00
|
|
|
uint8 filter;
|
2010-05-17 12:55:37 +02:00
|
|
|
uint8 psgBoostNoise;
|
|
|
|
uint8 dac_bits;
|
|
|
|
int16 psg_preamp;
|
|
|
|
int16 fm_preamp;
|
|
|
|
int16 lp_range;
|
2009-08-11 10:18:46 +02:00
|
|
|
int16 low_freq;
|
|
|
|
int16 high_freq;
|
2010-05-17 12:55:37 +02:00
|
|
|
int16 lg;
|
|
|
|
int16 mg;
|
|
|
|
int16 hg;
|
2010-02-28 20:55:43 +01:00
|
|
|
float rolloff;
|
2008-08-07 14:26:07 +02:00
|
|
|
uint8 region_detect;
|
|
|
|
uint8 force_dtack;
|
2009-06-17 09:58:56 +02:00
|
|
|
uint8 addr_error;
|
2010-06-14 10:05:45 +02:00
|
|
|
uint8 tmss;
|
2009-07-29 17:34:25 +02:00
|
|
|
uint8 lock_on;
|
2009-10-16 13:32:55 +02:00
|
|
|
uint8 hot_swap;
|
2009-08-06 20:31:05 +02:00
|
|
|
uint8 romtype;
|
2010-05-17 12:55:37 +02:00
|
|
|
uint8 invert_mouse;
|
|
|
|
uint8 gun_cursor[2];
|
|
|
|
uint8 overscan;
|
|
|
|
uint8 ntsc;
|
|
|
|
uint8 render;
|
|
|
|
uint8 tv_mode;
|
|
|
|
uint8 bilinear;
|
|
|
|
uint8 aspect;
|
2008-08-07 14:26:07 +02:00
|
|
|
int16 xshift;
|
|
|
|
int16 yshift;
|
|
|
|
int16 xscale;
|
|
|
|
int16 yscale;
|
2010-05-17 12:55:37 +02:00
|
|
|
#ifdef HW_RVL
|
|
|
|
uint32 trap;
|
|
|
|
float gamma;
|
|
|
|
#endif
|
2009-05-02 17:00:13 +02:00
|
|
|
t_input_config input[MAX_INPUTS];
|
2010-05-17 12:55:37 +02:00
|
|
|
uint16 pad_keymap[4][MAX_KEYS];
|
|
|
|
#ifdef HW_RVL
|
|
|
|
uint32 wpad_keymap[4*3][MAX_KEYS];
|
|
|
|
#endif
|
2010-05-07 20:25:27 +02:00
|
|
|
uint8 autoload;
|
2010-05-06 14:59:43 +02:00
|
|
|
uint8 s_auto;
|
|
|
|
uint8 s_default;
|
|
|
|
uint8 s_device;
|
2009-05-26 18:40:35 +02:00
|
|
|
int8 bg_color;
|
2010-03-22 15:07:25 +01:00
|
|
|
int8 bg_overlay;
|
2009-05-25 09:46:19 +02:00
|
|
|
int16 screen_w;
|
2009-05-26 18:40:35 +02:00
|
|
|
float bgm_volume;
|
|
|
|
float sfx_volume;
|
2010-05-07 20:25:27 +02:00
|
|
|
char sddir[MAXPATHLEN];
|
|
|
|
#ifdef HW_RVL
|
|
|
|
char usbdir[MAXPATHLEN];
|
|
|
|
#endif
|
2008-08-07 14:26:07 +02:00
|
|
|
} t_config;
|
|
|
|
|
2008-12-07 20:31:50 +01:00
|
|
|
/* Global data */
|
|
|
|
t_config config;
|
|
|
|
|
|
|
|
|
2009-05-01 14:56:48 +02:00
|
|
|
extern void config_save(void);
|
|
|
|
extern void config_load(void);
|
|
|
|
extern void config_default(void);
|
2008-12-12 16:38:04 +01:00
|
|
|
|
2008-08-07 14:26:07 +02:00
|
|
|
|
|
|
|
#endif /* _CONFIG_H_ */
|
|
|
|
|