Merge pull request #926 from SRSaunders/basepath-fix

Respect basePath parameter vs hardcoded path in R_WritePNG()
This commit is contained in:
Robert Beckebans 2024-08-21 13:58:25 +02:00 committed by GitHub
commit f6cd2386a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -522,7 +522,7 @@ void R_WritePNG( const char* filename, const byte* data, int bytesPerPixel, int
common->Error( "R_WritePNG( %s ): bytesPerPixel = %i not supported", filename, bytesPerPixel );
}
idFileLocal file( fileSystem->OpenFileWrite( filename, "fs_basepath" ) );
idFileLocal file( fileSystem->OpenFileWrite( filename, basePath ) );
if( file == NULL )
{
common->Printf( "R_WritePNG: Failed to open %s\n", filename );