Fix for missing shaderlist in JAPack

This commit is contained in:
Willi Schinmeyer 2012-06-16 16:51:31 +02:00
parent 4a9b132893
commit 6150c562c6

View file

@ -3571,6 +3571,12 @@ void CGameInstall::Run() {
source += JA_PACK; source += JA_PACK;
source += "/install/"; source += "/install/";
Str dest = m_strEngine.GetBuffer(); 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() ); radCopyTree( source.GetBuffer(), dest.GetBuffer() );
fprintf( fg, " basegame=\"base\"\n" ); fprintf( fg, " basegame=\"base\"\n" );
fprintf( fg, " shaderpath=\"shaders\"\n" ); fprintf( fg, " shaderpath=\"shaders\"\n" );