From 4d34957f654ba65d7608762250cdf1912e9744b8 Mon Sep 17 00:00:00 2001 From: SRSaunders <82544213+SRSaunders@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:57:56 -0400 Subject: [PATCH] Respect basePath parameter vs hardcoded path in R_WritePNG() --- neo/renderer/Image_files.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neo/renderer/Image_files.cpp b/neo/renderer/Image_files.cpp index 2fc06228..8d9747f5 100644 --- a/neo/renderer/Image_files.cpp +++ b/neo/renderer/Image_files.cpp @@ -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 );