From e14e619acf2d475528c8df4539d21ae991b249e9 Mon Sep 17 00:00:00 2001
From: yellowtd <ren_amon@hotmail.com>
Date: Sat, 4 Jul 2015 05:07:10 -0400
Subject: [PATCH] Update d_main.c

---
 src/d_main.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/d_main.c b/src/d_main.c
index 61255e2722..e12335e24b 100644
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -145,7 +145,7 @@ char srb2path[256] = ".";
 #endif
 boolean usehome = true;
 const char *pandf = "%s" PATHSEP "%s";
-
+const char *ASSET_HASH_JTELUA_DLL = "a6625632aa87a2221dfe25eada57b664";
 //
 // EVENT HANDLING
 //
@@ -833,6 +833,9 @@ static void IdentifyVersion(void)
 	// Add the weapons
 	D_AddFile(va(pandf,srb2waddir,"rings.dta"));
 
+	//--Add temporary lua/wad fixes until next patch, or 2.3
+	D_AddFile(va(pandf,srb2waddir,"liblua-51_ex.dll"));
+    
 	// Add our crappy patches to fix our bugs
 	// D_AddFile(va(pandf,srb2waddir,"patch.dta"));
 
@@ -1125,6 +1128,8 @@ void D_SRB2Main(void)
 	W_VerifyFileMD5(1, ASSET_HASH_ZONES_DTA); // zones.dta
 	W_VerifyFileMD5(2, ASSET_HASH_PLAYER_DTA); // player.dta
 	W_VerifyFileMD5(3, ASSET_HASH_RINGS_DTA); // rings.dta
+	//Explicitly required for JTE related lua fixes (temporary)
+	W_VerifyFileMD5(4, ASSET_HASH_JTELUA_DLL); // liblua-51_ex.dll	
 	//W_VerifyFileMD5(4, "0c66790502e648bfce90fdc5bb15722e"); // patch.dta
 	// don't check music.dta because people like to modify it, and it doesn't matter if they do
 	// ...except it does if they slip maps in there, and that's what W_VerifyNMUSlumps is for.
-- 
GitLab