diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-29 11:09:51 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-29 11:09:51 +0100 |
commit | e1a7c1d0ca30c2c4a293ffbff6b9c51c881d23e3 (patch) | |
tree | 4d94aa2b4529a6637aabf4e0dcd72f5260d522eb /src/utils/physfsrwops.h | |
parent | a5daacc2d5ccfe1255aeb18a1a5e557551b7449a (diff) | |
download | mana-client-e1a7c1d0ca30c2c4a293ffbff6b9c51c881d23e3.tar.gz mana-client-e1a7c1d0ca30c2c4a293ffbff6b9c51c881d23e3.tar.bz2 mana-client-e1a7c1d0ca30c2c4a293ffbff6b9c51c881d23e3.tar.xz mana-client-e1a7c1d0ca30c2c4a293ffbff6b9c51c881d23e3.zip |
Updated PhysFS RWops helper to the latest version
Fixes compatibility with SDL2. The old version compiled for whatever
reason, but it would crash when the client tried to play a sound.
Diffstat (limited to 'src/utils/physfsrwops.h')
-rw-r--r-- | src/utils/physfsrwops.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/utils/physfsrwops.h b/src/utils/physfsrwops.h index 8008b224..04ad255d 100644 --- a/src/utils/physfsrwops.h +++ b/src/utils/physfsrwops.h @@ -15,7 +15,8 @@ * Unless otherwise stated, the rest of PhysicsFS falls under the zlib license. * Please see LICENSE.txt in the root of the source tree. * - * SDL falls under the LGPL license. You can get SDL at http://www.libsdl.org/ + * SDL 1.2 falls under the LGPL license. SDL 1.3+ is zlib, like PhysicsFS. + * You can get SDL at https://www.libsdl.org/ * * This file was written by Ryan C. Gordon. (icculus@icculus.org). */ @@ -40,7 +41,7 @@ extern "C" { * @return A valid SDL_RWops structure on success, NULL on error. Specifics * of the error can be gleaned from PHYSFS_getLastError(). */ -SDL_RWops *PHYSFSRWOPS_openRead(const char *fname); +PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_openRead(const char *fname); /** * Open a platform-independent filename for writing, and make it accessible @@ -52,7 +53,7 @@ SDL_RWops *PHYSFSRWOPS_openRead(const char *fname); * @return A valid SDL_RWops structure on success, NULL on error. Specifics * of the error can be gleaned from PHYSFS_getLastError(). */ -SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname); +PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname); /** * Open a platform-independent filename for appending, and make it accessible @@ -64,7 +65,7 @@ SDL_RWops *PHYSFSRWOPS_openWrite(const char *fname); * @return A valid SDL_RWops structure on success, NULL on error. Specifics * of the error can be gleaned from PHYSFS_getLastError(). */ -SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname); +PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname); /** * Make a SDL_RWops from an existing PhysicsFS file handle. You should @@ -76,7 +77,7 @@ SDL_RWops *PHYSFSRWOPS_openAppend(const char *fname); * @return A valid SDL_RWops structure on success, NULL on error. Specifics * of the error can be gleaned from PHYSFS_getLastError(). */ -SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_File *handle); +PHYSFS_DECL SDL_RWops *PHYSFSRWOPS_makeRWops(PHYSFS_File *handle); #ifdef __cplusplus } |