mirror of
https://github.com/Garux/netradiant-custom.git
synced 2026-09-28 00:00:03 +02:00
fix custom shader writing when scripts/ folder does not exist
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user