From 3889ed8c52bbf2a85d505138a25100426026da64 Mon Sep 17 00:00:00 2001 From: Crow-bar Date: Fri, 14 Oct 2022 15:37:24 +0300 Subject: [PATCH] engine: using sceIoRemove() instead of remove() for psp --- engine/common/filesystem.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/common/filesystem.c b/engine/common/filesystem.c index e93f2bb6..7ff227ed 100644 --- a/engine/common/filesystem.c +++ b/engine/common/filesystem.c @@ -3811,7 +3811,11 @@ qboolean GAME_EXPORT FS_Delete( const char *path ) Q_snprintf( real_path, sizeof( real_path ), "%s%s", fs_writedir, path ); COM_FixSlashes( real_path ); +#if XASH_PSP + iRet = sceIoRemove( real_path ); +#else iRet = remove( real_path ); +#endif return (iRet == 0); }