diff options
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h new file mode 100644 index 0000000..89e8e82 --- /dev/null +++ b/src/config.h @@ -0,0 +1,28 @@ +#ifndef PW_CONFIG_H +#define PW_CONFIG_H + +#include <SDL3/SDL_init.h> +#include <SDL3/SDL_log.h> + +#include "scale.h" + +/** + * The configuration for PICO-w. + */ +struct pw_config { + char *carts; + enum pw_scale_mode mode; + SDL_LogPriority logp; +}; + +/** + * Loads the configuration, reading overrides from the command line. + */ +struct pw_config *pw_config_load(int argc, char **argv); + +/** + * Frees the configuration. + */ +void pw_config_free(struct pw_config *config); + +#endif |
