Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
version.h
Go to the documentation of this file.
1
#ifndef VERSION_H
2
#define VERSION_H
3
4
/*
5
* The version of the game being built. The Makefile passes exactly one
6
* -DVERSION_<VERSION> (make VERSION=eu gives -DVERSION_EU); here every
7
* version's macro becomes 0 or 1, so that code tests them with #if:
8
*
9
* #if VERSION_EU
10
* #if VERSION_US || VERSION_EU
11
*
12
* never with #ifdef or defined(), which can't tell a version that is off
13
* from a misspelt one (-Wundef warns about the misspelling in #if). A
14
* condition names the versions it is for: the versions have no order.
15
* A new version gets its line here and in the Makefile's VERSIONS.
16
*/
17
#if defined(VERSION_US) + defined(VERSION_EU) + defined(VERSION_JP) != 1
18
#error "build with exactly one of -DVERSION_US, -DVERSION_EU and -DVERSION_JP, as make VERSION=<version> does"
19
#endif
20
21
#ifndef VERSION_US
22
#define VERSION_US 0
23
#endif
24
#ifndef VERSION_EU
25
#define VERSION_EU 0
26
#endif
27
#ifndef VERSION_JP
28
#define VERSION_JP 0
29
#endif
30
31
/*
32
* What the versions differ in, where the same difference recurs: each 0 or
33
* 1, tested with #if as the versions are, so that the code says what the
34
* difference is.
35
*
36
* PAL_VIDEO: the European release runs at 50 Hz (PAL), its clocks a step
37
* longer, unless NTSC_MODE is set, and moves its display down
38
* (SHIFT_PAL_SCREEN); the USA and Japanese ones are NTSC only.
39
*/
40
#define PAL_VIDEO VERSION_EU
41
42
#endif
/* VERSION_H */
include
version.h
Generated by
1.9.8