# HG changeset patch # User nemo # Date 1526651816 14400 # Node ID fa81f809fbb9821927d5ea4802c07a6ab5db887e # Parent ae5d6448c5beca6aa4a5ccf68a6b1a76c3046569 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. diff -r ae5d6448c5be -r fa81f809fbb9 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 {