mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: psp Adrenaline bug
This commit is contained in:
@@ -3854,8 +3854,13 @@ qboolean FS_Rename( const char *oldname, const char *newname )
|
||||
if( !oldname || !newname || !*oldname || !*newname )
|
||||
return false;
|
||||
|
||||
#if XASH_PSP // BUG: Adrenaline PSVITA: sceIoRename requires full path
|
||||
Q_snprintf( oldpath, sizeof( oldpath ), "%s/%s%s", host.rootdir, fs_writedir, oldname );
|
||||
Q_snprintf( newpath, sizeof( newpath ), "%s/%s%s", host.rootdir, fs_writedir, newname );
|
||||
#else
|
||||
Q_snprintf( oldpath, sizeof( oldpath ), "%s%s", fs_writedir, oldname );
|
||||
Q_snprintf( newpath, sizeof( newpath ), "%s%s", fs_writedir, newname );
|
||||
#endif
|
||||
|
||||
COM_FixSlashes( oldpath );
|
||||
COM_FixSlashes( newpath );
|
||||
|
||||
Reference in New Issue
Block a user