34cf4058 |
1 | #ifndef CONFIG_H |
2 | #define CONFIG_H |
3 | |
4 | struct Config |
5 | { |
6 | int version; |
7 | |
8 | struct |
9 | { |
10 | int flipVertical; |
11 | } screen; |
12 | |
13 | struct |
14 | { |
15 | int xpos, ypos, width, height, refwidth, refheight; |
16 | } window; |
17 | |
18 | struct |
19 | { |
20 | int enable, bilinear; |
21 | int xpos, ypos, width, height; |
22 | } framebuffer; |
23 | |
24 | struct |
25 | { |
26 | int force, width, height; |
27 | } video; |
28 | |
29 | struct |
30 | { |
31 | int maxAnisotropy; |
32 | int enableMipmap; |
33 | int forceBilinear; |
34 | int sai2x; |
35 | int useIA; |
36 | int fastCRC; |
37 | int pow2; |
38 | } texture; |
39 | |
40 | int logFrameRate; |
41 | int updateMode; |
42 | int forceBufferClear; |
43 | int ignoreOffscreenRendering; |
44 | int zHack; |
45 | |
46 | int autoFrameSkip; |
47 | int maxFrameSkip; |
48 | int targetFPS; |
49 | int frameRenderRate; |
50 | int verticalSync; |
51 | |
52 | int enableFog; |
53 | int enablePrimZ; |
54 | int enableLighting; |
55 | int enableAlphaTest; |
56 | int enableClipping; |
57 | int enableFaceCulling; |
58 | int enableNoise; |
59 | |
60 | // paulscode: removed from pre-compile to a config option |
61 | //// (part of the Galaxy S Zelda crash-fix |
62 | int tribufferOpt; |
63 | // |
64 | |
65 | int hackBanjoTooie; |
66 | int hackZelda; |
67 | int hackAlpha; |
68 | |
69 | bool stretchVideo; |
70 | bool romPAL; //is the rom PAL |
71 | char romName[21]; |
72 | }; |
73 | |
74 | extern Config config; |
75 | |
76 | void Config_LoadConfig(); |
77 | void Config_LoadRomConfig(unsigned char* header); |
78 | #endif |
79 | |