mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fixed convention naming in PatternToBytesAndMask.
This commit is contained in:
parent
5ecac66dba
commit
64cf0d33d7
@ -672,7 +672,7 @@ pair<vector<uint8_t>, string> PatternToBytesAndMask(const string& svInput)
|
||||
char* pszPatternStart = const_cast<char*>(svInput.c_str());
|
||||
char* pszPatternEnd = pszPatternStart + strlen(svInput.c_str());
|
||||
vector<uint8_t> vBytes = vector<uint8_t>{ };
|
||||
string szMask = string();
|
||||
string svMask = string();
|
||||
|
||||
for (char* pszCurrentByte = pszPatternStart; pszCurrentByte < pszPatternEnd; ++pszCurrentByte)
|
||||
{
|
||||
@ -684,15 +684,15 @@ pair<vector<uint8_t>, string> PatternToBytesAndMask(const string& svInput)
|
||||
++pszCurrentByte; // Skip double wildcard.
|
||||
}
|
||||
vBytes.push_back(0); // Push the byte back as invalid.
|
||||
szMask.append("?");
|
||||
svMask.append("?");
|
||||
}
|
||||
else
|
||||
{
|
||||
vBytes.push_back(strtoul(pszCurrentByte, &pszCurrentByte, 16));
|
||||
szMask.append("x");
|
||||
svMask.append("x");
|
||||
}
|
||||
}
|
||||
return make_pair(vBytes, szMask);
|
||||
return make_pair(vBytes, svMask);
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user