Changed type of string literals in all (I hope) structs to const char *, reduces .EXE file size by about 200 kB.

This commit is contained in:
OBattler
2017-06-16 22:54:08 +02:00
parent ce09beb9c8
commit 5fca563dd0
17 changed files with 73 additions and 73 deletions

View File

@@ -41,23 +41,23 @@ enum
typedef struct device_config_selection_t
{
char description[256];
const char *description;
int value;
} device_config_selection_t;
typedef struct device_config_t
{
char name[256];
char description[256];
const char *name;
const char *description;
int type;
char default_string[256];
const char *default_string;
int default_int;
device_config_selection_t selection[16];
} device_config_t;
typedef struct device_t
{
char name[50];
const char *name;
uint32_t flags;
void *(*init)();
void (*close)(void *p);