DGen/SDL
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
rc.cpp File Reference
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <SDL.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <assert.h>
#include <strings.h>
#include <ctype.h>
#include "rc.h"
#include "ckvp.h"
#include "pd-defs.h"
#include "romload.h"
#include "system.h"
#include "md.h"
#include "rc-vars.h"

Functions

intptr_t rc_keysym (const char *code, intptr_t *)
char * dump_keysym (intptr_t k)
intptr_t rc_boolean (const char *value, intptr_t *)
char * dump_joypad (intptr_t js)
intptr_t rc_joypad (const char *value, intptr_t *)
intptr_t rc_ctv (const char *value, intptr_t *)
intptr_t rc_scaling (const char *value, intptr_t *)
intptr_t rc_emu_z80 (const char *value, intptr_t *)
intptr_t rc_emu_m68k (const char *value, intptr_t *)
intptr_t rc_region (const char *value, intptr_t *)
intptr_t rc_string (const char *value, intptr_t *)
intptr_t rc_rom_path (const char *value, intptr_t *)
intptr_t rc_number (const char *value, intptr_t *)
static void rc_binding_cleanup (void)
struct rc_fieldrc_binding_add (const char *rc, const char *to)
void rc_binding_del (rc_field *rcf)
intptr_t rc_bind (const char *value, intptr_t *variable)
static char * strclean (char *s)
void rc_str_cleanup (void)
void parse_rc (FILE *file, const char *name)
void dump_rc (FILE *file)

Variables

const char * ctv_names []
const char * scaling_names [] = { "default", "hqx", "scale2x", NULL }
const char * emu_z80_names [] = { "none", "mz80", "cz80", "drz80", NULL }
const char * emu_m68k_names [] = { "none", "star", "musa", "cyclone", NULL }
struct rc_keysym rc_keysyms []
struct {
   const char *   name
   uint32_t   flag
keymod []
static const char * joypad_axis_type []
static const unsigned int joypad_axis_value []
static const char * joypad_hat_type []
static const unsigned int joypad_hat_value []
struct rc_field rc_fields [RC_FIELDS_SIZE]
struct rc_binding rc_binding_head
struct rc_strrc_str_list = NULL

Function Documentation

char* dump_joypad ( intptr_t  js)
char* dump_keysym ( intptr_t  k)
void dump_rc ( FILE *  file)
void parse_rc ( FILE *  file,
const char *  name 
)
intptr_t rc_bind ( const char *  value,
intptr_t *  variable 
)
struct rc_field* rc_binding_add ( const char *  rc,
const char *  to 
)
read
static void rc_binding_cleanup ( void  )
static
void rc_binding_del ( rc_field rcf)
intptr_t rc_boolean ( const char *  value,
intptr_t *   
)
intptr_t rc_ctv ( const char *  value,
intptr_t *   
)
intptr_t rc_emu_m68k ( const char *  value,
intptr_t *   
)
intptr_t rc_emu_z80 ( const char *  value,
intptr_t *   
)
intptr_t rc_joypad ( const char *  value,
intptr_t *   
)
intptr_t rc_keysym ( const char *  code,
intptr_t *   
)
intptr_t rc_number ( const char *  value,
intptr_t *   
)
intptr_t rc_region ( const char *  value,
intptr_t *   
)
intptr_t rc_rom_path ( const char *  value,
intptr_t *   
)
intptr_t rc_scaling ( const char *  value,
intptr_t *   
)
void rc_str_cleanup ( void  )
intptr_t rc_string ( const char *  value,
intptr_t *   
)
static char* strclean ( char *  s)
static

Variable Documentation

const char* ctv_names[]
Initial value:
{
"off", "blur", "scanline", "interlace", "swab",
}
const char* emu_m68k_names[] = { "none", "star", "musa", "cyclone", NULL }
const char* emu_z80_names[] = { "none", "mz80", "cz80", "drz80", NULL }
uint32_t flag
const char* joypad_axis_type[]
static
Initial value:
{
"max", "p", "positive",
"min", "n", "negative",
"between", "b", NULL
}
const unsigned int joypad_axis_value[]
static
const char* joypad_hat_type[]
static
Initial value:
{
"centered", "up", "right_up", "right",
"right_down", "down", "left_down",
"left", "left_up", NULL
}
const unsigned int joypad_hat_value[]
static
struct { ... } keymod[]
const char* name
struct rc_binding rc_binding_head
Initial value:
{
false,
0,
NULL
}
struct rc_field rc_fields[RC_FIELDS_SIZE]
struct rc_keysym rc_keysyms[]
struct rc_str* rc_str_list = NULL
const char* scaling_names[] = { "default", "hqx", "scale2x", NULL }