aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/UtlCachedFileData.h
diff options
context:
space:
mode:
authorJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
committerJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
commit0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch)
treec831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/public/UtlCachedFileData.h
parentUpdated the SDK with the latest code from the TF and HL2 branches. (diff)
downloadsource-sdk-2013-0d8dceea4310fde5706b3ce1c70609d72a38efdf.tar.xz
source-sdk-2013-0d8dceea4310fde5706b3ce1c70609d72a38efdf.zip
Updated the SDK with the latest code from the TF and HL2 branches.HEADmaster
Diffstat (limited to 'mp/src/public/UtlCachedFileData.h')
-rw-r--r--mp/src/public/UtlCachedFileData.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/mp/src/public/UtlCachedFileData.h b/mp/src/public/UtlCachedFileData.h
index d7b0bc46..4420c21b 100644
--- a/mp/src/public/UtlCachedFileData.h
+++ b/mp/src/public/UtlCachedFileData.h
@@ -461,7 +461,7 @@ void CUtlCachedFileData<T>::InitSmallBuffer( FileHandle_t& fh, int fileSize, boo
// Read the element name
char elementFileName[ 512 ];
- buf.GetString( elementFileName, sizeof( elementFileName ) );
+ buf.GetString( elementFileName );
// Now read the element
int slot = GetIndex( elementFileName );
@@ -561,7 +561,7 @@ void CUtlCachedFileData<T>::InitLargeBuffer( FileHandle_t& fh, bool& deleteFile
// Read the element name
char elementFileName[ 512 ];
- buf.GetString( elementFileName, sizeof( elementFileName ) );
+ buf.GetString( elementFileName );
// Now read the element
int slot = GetIndex( elementFileName );
@@ -682,7 +682,7 @@ void CUtlCachedFileData<T>::Save()
fh = g_pFullFileSystem->Open( m_sRepositoryFileName, "wb" );
if ( FILESYSTEM_INVALID_HANDLE == fh )
{
- Warning( "Unable to persist cache '%s', check file permissions\n", m_sRepositoryFileName.String() );
+ ExecuteNTimes( 25, Warning( "Unable to persist cache '%s', check file permissions\n", m_sRepositoryFileName.String() ) );
}
else
{