1+ /*
2+
3+ Version: MPL 1.1
4+
5+ The contents of this file are subject to the Mozilla Public License Version
6+ 1.1 the "License"; you may not use this file except in compliance with
7+ the License. You may obtain a copy of the License at
8+ http://www.mozilla.org/MPL/
9+
10+ Software distributed under the License is distributed on an "AS IS" basis,
11+ WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12+ for the specific language governing rights and limitations under the
13+ License.
14+
15+ Portions created by the Initial Developer are Copyright (c) 2022
16+ the Initial Developer. All Rights Reserved.
17+
18+ */
19+
20+ #if defined RELEASE_FILTERSCRIPT
21+ # define DPP_VERSION_TYPE " FS"
22+ #else
23+ # define DPP_VERSION_TYPE " MS"
24+ #endif
25+ # define DPP_VERSION_MAJOR 1
26+ # define DPP_VERSION_MINOR 2
27+ # define DPP_VERSION_PATCH 0
28+ // dpp_genver__()
29+ # define DPP_VERSION_RELEASE " u"
30+ // dpp_genver__()*2
31+ # define DPP_VERSION_GS 1
32+
33+ new dpp_vers_string__[100 ];
34+
35+ dpp_genvers__ ()
36+ {
37+ // DPP_VERSION_TYPE,DPP_VERSION_MAJOR,DPP_VERSION_MINOR,DPP_VERSION_PATCH,DPP_VERSION_RELEASE,DPP_VERSION_GS
38+
39+ format (dpp_vers_string__, sizeof dpp_vers_string__, " %s %i%i%i%s -Gs%i " ,
40+ DPP_VERSION_TYPE,
41+ DPP_VERSION_MAJOR,
42+ DPP_VERSION_MINOR,
43+ DPP_VERSION_PATCH,
44+ DPP_VERSION_RELEASE,
45+ DPP_VERSION_GS);
46+
47+ return 1 ;
48+ }
49+
50+ void: dpp_verinfo__ ()
51+ {
52+ printf (" \t PawnScript %s \t Brace Inc." , dpp_vers_string__);
53+ printf (" \t Pawn %d .%02d .%02d \t\t ITB CompuPhase" , __Pawn >>> 8 , __Pawn & 0x FF , __PawnBuild/* __pawn_build*/ ); // from YSI
54+ }
55+
56+ /*
57+ DEntisT versioning system
58+ =========================
59+
60+ Firstly, we must know if the code is a filterscript or mainscript,
61+ that's what the FS or MS prefixes do.
62+
63+ Now, we need a product version which consists of 3 digits, and that's
64+ x - Major vers number
65+ y - Minor vers number
66+ z - Patch number
67+
68+ Afterwards, we get a suffix:
69+ t - testing phase
70+ s - stable
71+ u - unstable
72+
73+ And lastly, we have a release of the graphics system.
74+ -GsX
75+ where X is a number starting from 1.
76+
77+ Example:
78+
79+ PawnScript MS 245u-Gs3
80+
81+ PawnScript interpreter made for gamemode, major release 2 , minor release 4,
82+ patch number 5. This is an unstable version. Graphics system is at release 3.
83+
84+ */
0 commit comments