mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-15 00:07:58 +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();
|
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];
|
char searchPaths[4096];
|
||||||
filesystem->GetSearchPath( "GAME", true, searchPaths, sizeof( searchPaths ) );
|
filesystem->GetSearchPath( "GAME", true, searchPaths, sizeof( searchPaths ) );
|
||||||
|
#endif
|
||||||
|
|
||||||
for ( char *path = strtok( searchPaths, ";" ); path; path = strtok( NULL, ";" ) )
|
for ( char *path = strtok( searchPaths, ";" ); path; path = strtok( NULL, ";" ) )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user