1 /* 2 * Copyright 2009-2016 Peter Kosyh <p.kosyh at gmail.com> 3 * 4 * Permission is hereby granted, free of charge, to any person 5 * obtaining a copy of this software and associated documentation files 6 * (the "Software"), to deal in the Software without restriction, 7 * including without limitation the rights to use, copy, modify, merge, 8 * publish, distribute, sublicense, and/or sell copies of the Software, 9 * and to permit persons to whom the Software is furnished to do so, 10 * subject to the following conditions: 11 * 12 * The above copyright notice and this permission notice shall be 13 * included in all copies or substantial portions of the Software. 14 * 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 * 23 */ 24 25 #ifndef __CONFIG_H_INCLUDED 26 #define __CONFIG_H_INCLUDED 27 28 #define FONT_SZ(v) (SCALABLE_FONT?((v) * (1.0f + ((0.1f * opt_fsize)))):(v)) 29 30 #define KBD_SMART 0 31 #define KBD_NORMAL 1 32 #define KBD_INVERSE 2 33 #define KBD_MAX 3 34 35 #define JUST_THEME 0 36 #define JUST_NO 1 37 #define JUST_YES 2 38 #define JUST_MAX 3 39 40 extern char *appdata_sw; 41 extern int chunksize_sw; 42 43 extern int opt_fading; 44 extern int opt_fsize; 45 extern int opt_fs; 46 extern int opt_owntheme; 47 extern int opt_hl; 48 extern int opt_hz; 49 extern int opt_vol; 50 extern int opt_motion; 51 extern int opt_click; 52 extern int opt_music; 53 extern int opt_autosave; 54 extern int opt_filter; 55 extern int opt_kbd; 56 extern int opt_justify; 57 extern int opt_vsync; 58 extern int opt_debug; 59 extern int opt_resizable; 60 extern int opt_hires; 61 62 extern int opt_mode[2]; 63 extern char *opt_game; 64 extern char *opt_theme; 65 extern char *opt_lang; 66 67 extern void cfg_init(void); 68 69 extern int cfg_load(void); 70 extern int cfg_save(void); 71 72 extern int parse_mode(const char *v, void *data); 73 74 #endif 75