fix custom shader writing when scripts/ folder does not exist

This commit is contained in:
Garux
2026-01-12 18:20:01 +05:00
parent 129725155f
commit ceb906c1f5
+3
View File
@@ -299,6 +299,9 @@ void WriteMapShaderFile(){
Sys_FPrintf( SYS_VRB, "--- WriteMapShaderFile ---\n" );
Sys_FPrintf( SYS_VRB, "Writing %s", mapShaderFile.c_str() );
/* ensure folder exists */
Q_mkdir( StringStream( PathFilenameless( mapShaderFile.c_str() ) ) );
/* open shader file */
FILE *file = fopen( mapShaderFile.c_str(), "wt" );
if ( file == nullptr ) {