ref: 36cd7eafe1e6b3896fc95afe377b8937cb99b451
dir: /frontend/config.h/
#ifndef CONFIG_H
#define CONFIG_H
#include <stdlib.h>
#include "argparse.h"
#include "toml.h"
#include "psx/log.h"
typedef struct {
int use_args;
int version;
int help_model;
int help_region;
const char* settings_path;
const char* bios;
const char* bios_search;
const char* model;
const char* exe;
const char* region;
const char* psxe_version;
} psxe_config_t;
psxe_config_t* psxe_cfg_create();
void psxe_cfg_init(psxe_config_t*);
void psxe_cfg_load_defaults(psxe_config_t*);
void psxe_cfg_load(psxe_config_t*, int, const char**);
char* psxe_cfg_get_bios_path(psxe_config_t*);
void psxe_cfg_destroy(psxe_config_t*);
#endif