diff options
author | Shauren <shauren.trinity@gmail.com> | 2022-11-03 01:15:30 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-11-03 01:15:30 +0100 |
commit | c4564566b0b308f88f3664ec124a8557bdc278f0 (patch) | |
tree | f09d604f961e5d605556bc652aea5ec5d505d025 /dep/CascLib/src/common/Path.h | |
parent | 722201e01c7809f1e85eb480499630a7d7d748b5 (diff) |
Dep/CascLib: Update to ladislav-zezula/CascLib@136c6e05537bd7123620ddb28671d1f2cf060e0b
Diffstat (limited to 'dep/CascLib/src/common/Path.h')
-rw-r--r-- | dep/CascLib/src/common/Path.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/dep/CascLib/src/common/Path.h b/dep/CascLib/src/common/Path.h index 98ba601d33b..56489c5f4d9 100644 --- a/dep/CascLib/src/common/Path.h +++ b/dep/CascLib/src/common/Path.h @@ -22,6 +22,7 @@ struct CASC_PATH m_szBufferBegin = m_szBufferPtr = m_Buffer; m_szBufferEnd = m_szBufferBegin + _countof(m_Buffer); m_chSeparator = (xchar)chSeparator; + m_bLocalCache = 0; m_Buffer[0] = 0; } @@ -34,11 +35,21 @@ struct CASC_PATH } // LPCTSTR szPath = Path; - operator const xchar *() + operator const xchar *() const { return m_szBufferBegin; } + void SetLocalCaching(int bLocalCache) + { + m_bLocalCache = (xchar)(bLocalCache != 0); + } + + bool LocalCaching() + { + return (m_bLocalCache != 0); + } + // LPTSTR szPath = Path.New(); xchar * New() { @@ -81,7 +92,7 @@ struct CASC_PATH return true; } - size_t Length() + size_t Length() const { return m_szBufferPtr - m_szBufferBegin; } @@ -177,6 +188,7 @@ struct CASC_PATH xchar * m_szBufferEnd; xchar m_Buffer[MAX_PATH]; xchar m_chSeparator; + xchar m_bLocalCache:1; }; #endif // __CASC_PATH_H__ |