Skip to content

Commit

Permalink
Update level version string list
Browse files Browse the repository at this point in the history
Distinguish different level versions before the 1.0 release as "Beta 1" through "Beta 14" as I've usually referred them to as in the past
  • Loading branch information
rollerozxa committed Mar 4, 2024
1 parent 40bb72e commit 38ebc42
Showing 1 changed file with 41 additions and 32 deletions.
73 changes: 41 additions & 32 deletions src/src/pkgman.hh
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,42 @@
#define LEVEL_HIDDEN 2

static const char *level_version_strings[] = {
"0.0", // 14
"1.0", // 15
"1.1.6", // 16
"1.1.7", // 17
"1.2", // 18
"1.2.1", // 19
"1.2.2", // 20
"1.2.3", // 21
"1.2.4", // 22
"1.3.0.1", // 23
"1.3.0.2", // 24
"1.3.0.3", // 25
"1.4", // 26
"1.4.0.2", // 27
"1.5", // 28
"1.5.1", // 29
"1.5.2 (2023-06-05)", // 30
0, // 31
0, // 32
0, // 33
0, // 34
0, // 35
"Null",
"Beta 1",
"Beta 2",
"Beta 3",
"Beta 4",
"Beta 5",
"Beta 6",
"Beta 7",
"Beta 8",
"Beta 9",
"Beta 10",
"Beta 11",
"Beta 12",
"Beta 13",
"Beta 14",
"1.0",
"1.1.6",
"1.1.7",
"1.2",
"1.2.1",
"1.2.2",
"1.2.3",
"1.2.4",
"1.3.0.1",
"1.3.0.2",
"1.3.0.3",
"1.4",
"1.4.0.2",
"1.5",
"1.5.1",
"2023-06-05",
0,
0,
0,
0,
0,
};

#define LCAT_PUZZLE 0
Expand Down Expand Up @@ -87,17 +101,12 @@ static const char *level_version_strings[] = {

static const char *level_version_string(int level_version)
{
if (level_version < LEVEL_VERSION_1_0) {
return "old_level";
} else if (level_version <= LEVEL_VERSION) {
const char *ret = level_version_strings[level_version-LEVEL_VERSION_1_0+1];
const char *ret = level_version_strings[level_version];

if (ret) {
return ret;
}
}

return "unknown_version";
if (ret)
return ret;
else
return "N/A";
}

static const char *level_type_string(uint8_t level_type)
Expand Down

0 comments on commit 38ebc42

Please sign in to comment.