blob: f75669cbd5f2506dc8656ac0fc62dc035b965704 (
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
|
#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 {
bool debug;
char *carts;
enum pw_scale_mode mode;
size_t memory;
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
|