mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-27 22:27:57 +03:00
Fixed captions not loading from vpks
This commit is contained in:
parent
af6f9fe518
commit
54cd6f7eb3
@ -2626,8 +2626,13 @@ void CHudCloseCaption::InitCaptionDictionary( const char *dbfile )
|
|||||||
}
|
}
|
||||||
|
|
||||||
char fullpath[MAX_PATH];
|
char fullpath[MAX_PATH];
|
||||||
Q_snprintf( fullpath, sizeof( fullpath ), "%s%s", path, dbfile );
|
#ifndef MAPBASE
|
||||||
Q_FixSlashes( fullpath );
|
Q_snprintf(fullpath, sizeof(fullpath), "%s%s", path, dbfile);
|
||||||
|
Q_FixSlashes(fullpath);
|
||||||
|
#else
|
||||||
|
V_ComposeFileName(path, dbfile, fullpath, sizeof(fullpath));
|
||||||
|
#endif // !MAPBASE
|
||||||
|
|
||||||
|
|
||||||
if ( IsX360() )
|
if ( IsX360() )
|
||||||
{
|
{
|
||||||
@ -2692,8 +2697,7 @@ void CHudCloseCaption::AddAdditionalCaptionDictionary( const char *dbfile, CUtlV
|
|||||||
}
|
}
|
||||||
|
|
||||||
char fullpath[MAX_PATH];
|
char fullpath[MAX_PATH];
|
||||||
Q_snprintf( fullpath, sizeof( fullpath ), "%s%s", path, dbfile );
|
V_ComposeFileName(path, dbfile, fullpath, sizeof(fullpath));
|
||||||
Q_FixSlashes( fullpath );
|
|
||||||
|
|
||||||
if ( IsX360() )
|
if ( IsX360() )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user