blob: d8914cec395472319c3371f43b25705c77da06cb (
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
|
#include "main.h"
#include "overrides.h"
#include "overrides/gambatte.h"
#include "overrides/gpsp.h"
#include "overrides/mame2000.h"
#include "overrides/pcsx_rearmed.h"
#include "overrides/snes9x2002.h"
#include "overrides/snes9x2005.h"
static const struct core_override overrides[] = {
gambatte_overrides,
gpsp_overrides,
mame2000_overrides,
pcsx_rearmed_overrides,
snes9x2002_overrides,
snes9x2005_overrides,
};
static const struct core_override *override;
const struct core_override *get_overrides(void) {
return override;
}
void set_overrides(const char *core_name) {
override = NULL;
for (int i = 0; i < array_size(overrides); i++) {
if (!strcmp(core_name, overrides[i].core_name)) {
override = &overrides[i];
break;
}
}
}
|