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;
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user