From 6150c562c63c0a7c1a8b7d6ccef2045f910220b9 Mon Sep 17 00:00:00 2001 From: Willi Schinmeyer Date: Sat, 16 Jun 2012 16:51:31 +0200 Subject: [PATCH] Fix for missing shaderlist in JAPack --- radiant/preferences.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radiant/preferences.cpp b/radiant/preferences.cpp index 3ae76eb0..eeb5e86b 100644 --- a/radiant/preferences.cpp +++ b/radiant/preferences.cpp @@ -3571,6 +3571,12 @@ void CGameInstall::Run() { source += JA_PACK; source += "/install/"; Str dest = m_strEngine.GetBuffer(); + // Hardcoded fix for "missing" shaderlist in gamepack + dest += "/baseq3/shaders/shaderlist.txt"; + if(CheckFile(dest.GetBuffer()) != PATH_FILE) { + source += "baseq3/shaders/default_shaderlist.txt"; + radCopyFile(source.GetBuffer(),dest.GetBuffer()); + } radCopyTree( source.GetBuffer(), dest.GetBuffer() ); fprintf( fg, " basegame=\"base\"\n" ); fprintf( fg, " shaderpath=\"shaders\"\n" );