Support for OpenBSD

- use fseeko and ftello like FreeBSD in tinyxml2
- use current directory as basePath if NULL (OpenBSD doesn't actually support this feature it is disabled via a patch in their ports)
This commit is contained in:
striker.sh authored and Ethan Lee committed 2021-06-13 10:48:20 -04:00
1 parent c02bd9235f
commit 9188bd23d3
3 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -148,8 +148,8 @@ int FILESYSTEM_init(char *argvZero, char* baseDir, char *assetsPath)
if (basePath == NULL)
{
puts("Unable to get base path!");
return 0;
puts("Unable to determine base path, falling back to current directory");
basePath = SDL_strdup("./");
}
/* Mount the stock content last */