mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #19639 from k0tran/master
Force LoongArchCPUInfoParser::TotalLogicalCount() to always return
This commit is contained in:
commit
489db6b92c
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue