summaryrefslogtreecommitdiffhomepage
path: root/src/gametype.h
diff options
context:
space:
mode:
authorWillian Henrique <wsimanbrazil@yahoo.com.br>2022-11-15 21:19:47 -0300
committerMichael Smith <mikesmiffy128@gmail.com>2023-05-04 23:49:27 +0100
commit245f63c4a58b36dc46731758063c03aba2d3ec06 (patch)
treeb93dd8bffa00e1f1208bc05be1aa429022f7807a /src/gametype.h
parentab485b730f6407c668fc26e5e9c665d03650960a (diff)
Improve L4D2 and Portal gametype detection
Adds tags for L4D2 2147 and Portal 3420. Committer's note: really the gamedata system might benefit from improvement in the future to support things like numerical ranges, but this will do for now.
Diffstat (limited to 'src/gametype.h')
-rw-r--r--src/gametype.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gametype.h b/src/gametype.h
index 2464000..ad6d67d 100644
--- a/src/gametype.h
+++ b/src/gametype.h
@@ -1,5 +1,6 @@
/*
* Copyright © 2022 Michael Smith <mikesmiffy128@gmail.com>
+ * Copyright © 2023 Willian Henrique <wsimanbrazil@yahoo.com.br>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -49,7 +50,10 @@ extern u64 _gametype_tag;
#define _gametype_tag_SrvDLL009 (1 << 14) // 2013-ish
#define _gametype_tag_SrvDLL005 (1 << 15) // mostly everything else, it seems
-#define _gametype_tag_TheLastStand (1 << 16) /* The JAiZ update */
+/* games needing version-specific stuff */
+#define _gametype_tag_Portal1_3420 (1 << 16)
+#define _gametype_tag_L4D2_2147 (1 << 17)
+#define _gametype_tag_TheLastStand (1 << 18) /* The JAiZ update */
/* Matches for any multiple possible tags */
#define _gametype_tag_L4D (_gametype_tag_L4D1 | _gametype_tag_L4D2)