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" );