Merge pull request #75 from mrwonko/JKAConfig

Fixed wrong shaderpath and lack of shaderlist.txt for Jedi Academy
This commit is contained in:
Timothee "TTimo" Besset 2012-06-17 13:25:29 -07:00
commit 94aefb8f4c

View file

@ -3572,7 +3572,16 @@ void CGameInstall::Run() {
source += "/install/";
Str dest = m_strEngine.GetBuffer();
radCopyTree( source.GetBuffer(), dest.GetBuffer() );
// Hardcoded fix for "missing" shaderlist in gamepack
dest += "/base/shaders/shaderlist.txt";
if(CheckFile(dest.GetBuffer()) != PATH_FILE) {
source += "base/scripts/default_shaderlist.txt";
radCopyFile(source.GetBuffer(),dest.GetBuffer());
}
fprintf( fg, " basegame=\"base\"\n" );
fprintf( fg, " shaderpath=\"shaders\"\n" );
fprintf( fg, " default_scale=\"0.25\"\n" );
fprintf( fg, " caulk_shader=\"textures/system/caulk\"\n" );
break;
}
case GAME_REACTION: {