CPackedStore: Improve symbol naming

This commit is contained in:
Kawe Mazidjatari 2023-04-05 20:09:23 +02:00
parent dda78ed36e
commit 69775ca234

View File

@ -755,17 +755,17 @@ VPKDir_t::VPKDir_t(const string& svDirectoryPath, bool bSanitizeName)
return; return;
} }
std::smatch smRegexMatches; std::smatch regexMatches;
std::regex_search(svDirectoryPath, smRegexMatches, BLOCK_REGEX); std::regex_search(svDirectoryPath, regexMatches, BLOCK_REGEX);
if (smRegexMatches.empty()) if (regexMatches.empty())
{ {
Init(svDirectoryPath); Init(svDirectoryPath);
return; return;
} }
string svSanitizedName = svDirectoryPath; string svSanitizedName = svDirectoryPath;
StringReplace(svSanitizedName, smRegexMatches[0], "pak000_dir"); StringReplace(svSanitizedName, regexMatches[0], "pak000_dir");
bool bHasLocale = false; bool bHasLocale = false;
for (const string& svLocale : DIR_LOCALE) for (const string& svLocale : DIR_LOCALE)