X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2Fcommon%2Fetag.cpp;h=a32f0e9a5c6ed3ed4242daaecaaa027e124767cd;hb=a73019906500e3a0fc306a61e4b7975f79725866;hp=95e38e4c1578d583daffab880502d60867bcce68;hpb=969329975a0af9d346c76dc34e9ff9cd54cc61ee;p=xestiaab%2F.git diff --git a/source/common/etag.cpp b/source/common/etag.cpp index 95e38e4..a32f0e9 100644 --- a/source/common/etag.cpp +++ b/source/common/etag.cpp @@ -106,6 +106,32 @@ void ETagDB::UpdateETag(wxString Filename, wxString ETag, wxString ETagOriginal) } +bool ETagDB::ETagExists(wxString Filename){ + + // Lock or wait if it is already locked. + + ProcessLock->lock(); + + bool FileResult = FALSE; + + if (FilenameETag.find(Filename) != FilenameETag.end()){ + + FileResult = TRUE; + + } else { + + FileResult = FALSE; + + } + + // Unlock. + + ProcessLock->unlock(); + + return FileResult; + +} + std::map* ETagDB::GetFilenamePointer(){ return &FilenameETag;