mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-13 15:27:56 +03:00
Fixed missing some closecaptions
This commit is contained in:
parent
54cd6f7eb3
commit
e672c3521c
@ -2614,8 +2614,14 @@ void CHudCloseCaption::InitCaptionDictionary( const char *dbfile )
|
||||
|
||||
g_AsyncCaptionResourceManager.Clear();
|
||||
|
||||
#ifdef MAPBASE
|
||||
int iBufferSize = filesystem->GetSearchPath("GAME", true, nullptr, 0);
|
||||
char* searchPaths = (char*)stackalloc(iBufferSize);
|
||||
filesystem->GetSearchPath("GAME", true, searchPaths, iBufferSize);
|
||||
#else
|
||||
char searchPaths[4096];
|
||||
filesystem->GetSearchPath( "GAME", true, searchPaths, sizeof( searchPaths ) );
|
||||
#endif
|
||||
|
||||
for ( char *path = strtok( searchPaths, ";" ); path; path = strtok( NULL, ";" ) )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user