Files
ports/games/vvvvvv/files/patch-src_FileSystemUtils.cpp
T
Emmanuel Vadot 666cecefaf games/vvvvvv: New port
VVVVVV is a 2D platformer inspired by the Commodore C64 era.
2020-01-11 15:55:35 +00:00

16 lines
468 B
C++

--- src/FileSystemUtils.cpp.orig 2020-01-10 22:11:00 UTC
+++ src/FileSystemUtils.cpp
@@ -73,6 +73,12 @@ int FILESYSTEM_init(char *argvZero)
#ifdef _WIN32
strcpy(output, PHYSFS_getBaseDir());
strcat(output, "data.zip");
+#elif defined(__FreeBSD__)
+ PLATFORM_getOSDirectory(output);
+ if (strlcat(output, "data.zip", sizeof(output)) >= sizeof(output)) {
+ puts("Cannot find location for data.zip\n");
+ return 0;
+ }
#else
strcpy(output, "data.zip");
#endif