mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Merge pull request #19639 from k0tran/master
Force LoongArchCPUInfoParser::TotalLogicalCount() to always return
This commit is contained in:
@@ -94,15 +94,11 @@ int LoongArchCPUInfoParser::TotalLogicalCount() {
|
||||
int low, high, found;
|
||||
std::getline(presentFile, line);
|
||||
found = sscanf(line.c_str(), "%d-%d", &low, &high);
|
||||
if (found == 1){
|
||||
return 1;
|
||||
}
|
||||
if (found == 2){
|
||||
return high - low + 1;
|
||||
}
|
||||
}else{
|
||||
return 1;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user