IFDEF for Phys 2.0 which has no mountHandle - result will just be no hwp in hwp on those systems, which would be rarely used and DLC only. 0.9.24
authornemo
Fri, 18 May 2018 09:56:56 -0400
branch0.9.24
changeset 13395 fa81f809fbb9
parent 13393 ae5d6448c5be
child 13396 a52b8b8cbac4
child 13540 c5201a714b95
IFDEF for Phys 2.0 which has no mountHandle - result will just be no hwp in hwp on those systems, which would be rarely used and DLC only.
misc/libphyslayer/hwpacksmounter.c
--- a/misc/libphyslayer/hwpacksmounter.c	Thu May 17 20:04:07 2018 -0400
+++ b/misc/libphyslayer/hwpacksmounter.c	Fri May 18 09:56:56 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
 					{