mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
CPUDetect: improve win/arm64 support
read brand_string on macos/arm64 remove unused flags report family/model info instead of vendor name
This commit is contained in:
@ -248,6 +248,13 @@ void ReplaceBreaksWithSpaces(std::string& str)
|
||||
std::replace(str.begin(), str.end(), '\n', ' ');
|
||||
}
|
||||
|
||||
void TruncateToCString(std::string* s)
|
||||
{
|
||||
const size_t terminator = s->find_first_of('\0');
|
||||
if (terminator != s->npos)
|
||||
s->resize(terminator);
|
||||
}
|
||||
|
||||
bool TryParse(const std::string& str, bool* const output)
|
||||
{
|
||||
float value;
|
||||
|
Reference in New Issue
Block a user