blob: 8dcc68b2bc50b0dbb8a45a1bdc940a614d97bf7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#ifndef _OPTIONS_H__
#define _OPTIONS_H__
#include "libretro.h"
#include "scale.h"
extern int show_fps;
extern int limit_frames;
extern int enable_audio;
extern unsigned audio_buffer_size;
extern enum scale_size scale_size;
extern enum scale_filter scale_filter;
struct core_option_entry {
char *key;
char *desc;
char *info;
int value;
int prev_value;
int default_value;
bool blocked;
bool visible;
char **values;
char **labels;
char *retro_var_value;
};
struct core_options {
size_t len;
size_t visible_len;
bool changed;
struct core_option_entry *entries;
};
extern struct core_options core_options;
void options_init(const struct retro_core_option_definition *defs);
void options_init_variables(const struct retro_variable *vars);
bool options_changed(void);
void options_update_changed(void);
const char* options_get_key(int index);
struct core_option_entry* options_get_entry(const char* key);
const char* options_get_value(const char* key);
int* options_get_value_ptr(const char* key);
int options_get_value_index(const char* key);
void options_set_value(const char* key, const char *value);
void options_set_value_index(const char* key, int value);
void options_set_visible(const char* key, bool visible);
const char** options_get_options(const char* key);
void options_free(void);
#endif
|