mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-03 01:12:20 +00:00
Changed file testing for .bik videos to support fs_game. fixes #100
This commit is contained in:
parent
ee09662c10
commit
837cb4dff2
1 changed files with 28 additions and 1 deletions
|
@ -470,7 +470,34 @@ bool idCinematicLocal::InitFromFFMPEGFile( const char* qpath, bool amilooping )
|
|||
isRoQ = false;
|
||||
CIN_HEIGHT = DEFAULT_CIN_HEIGHT;
|
||||
CIN_WIDTH = DEFAULT_CIN_WIDTH;
|
||||
idStr fullpath = fileSystem->RelativePathToOSPath( qpath, "fs_basepath" );
|
||||
|
||||
idStr fullpath;
|
||||
idFile* testFile = fileSystem->OpenFileRead( qpath );
|
||||
if( testFile )
|
||||
{
|
||||
fullpath = testFile->GetFullPath();
|
||||
fileSystem->CloseFile( testFile );
|
||||
}
|
||||
// RB: case sensitivity HACK for Linux
|
||||
else if( idStr::Cmpn( qpath, "sound/vo", 8 ) == 0 )
|
||||
{
|
||||
idStr newPath( qpath );
|
||||
newPath.Replace( "sound/vo", "sound/VO" );
|
||||
|
||||
testFile = fileSystem->OpenFileRead( qpath );
|
||||
if( testFile )
|
||||
{
|
||||
fullpath = testFile->GetFullPath();
|
||||
fileSystem->CloseFile( testFile );
|
||||
}
|
||||
else
|
||||
{
|
||||
common->Warning( "idCinematic: Cannot open FFMPEG video file: '%s', %d\n", qpath, looping );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//idStr fullpath = fileSystem->RelativePathToOSPath( qpath, "fs_basepath" );
|
||||
|
||||
if( ( ret = avformat_open_input( &fmt_ctx, fullpath, NULL, NULL ) ) < 0 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue