merge this in too
authornemo
Fri, 18 May 2018 09:57:24 -0400
changeset 13401 a52b8b8cbac4
parent 13399 7b4726ef2308 (current diff)
parent 13400 fa81f809fbb9 (diff)
child 13402 166f8f31de3e
merge this in too
--- a/misc/libphyslayer/hwpacksmounter.c	Thu May 17 20:04:39 2018 -0400
+++ b/misc/libphyslayer/hwpacksmounter.c	Fri May 18 09:57:24 2018 -0400
@@ -49,12 +49,14 @@
 				{
 					if (strcmp(dir + dirLength - 4, ".hwp") == 0)
 					{
+#if PHYSFS_VER_MAJOR > 2 || PHYSFS_VER_MINOR > 0
 						char * uniqName = (char *)malloc(strlen(dir) + fileNameLength + 2);
 						strcpy(uniqName, dir);
 						strcat(uniqName, ",");
 						strcat(uniqName, fileName);
 						PHYSFS_mountHandle(PHYSFS_openRead(fileName), uniqName, NULL, 0);
 						free(uniqName);
+#endif
 					}
 					else
 					{