mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
CPackedStore: Improve symbol naming
This commit is contained in:
parent
dda78ed36e
commit
69775ca234
@ -755,17 +755,17 @@ VPKDir_t::VPKDir_t(const string& svDirectoryPath, bool bSanitizeName)
|
||||
return;
|
||||
}
|
||||
|
||||
std::smatch smRegexMatches;
|
||||
std::regex_search(svDirectoryPath, smRegexMatches, BLOCK_REGEX);
|
||||
std::smatch regexMatches;
|
||||
std::regex_search(svDirectoryPath, regexMatches, BLOCK_REGEX);
|
||||
|
||||
if (smRegexMatches.empty())
|
||||
if (regexMatches.empty())
|
||||
{
|
||||
Init(svDirectoryPath);
|
||||
return;
|
||||
}
|
||||
|
||||
string svSanitizedName = svDirectoryPath;
|
||||
StringReplace(svSanitizedName, smRegexMatches[0], "pak000_dir");
|
||||
StringReplace(svSanitizedName, regexMatches[0], "pak000_dir");
|
||||
|
||||
bool bHasLocale = false;
|
||||
for (const string& svLocale : DIR_LOCALE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user