mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-28 00:33:34 +01:00
Change Copy, Rename to use Path. Remove std::string version of Exists().
Buildfixes Buildfix
This commit is contained in:
1 parent
0d80362c30
commit
ae06499a0c
24 files changed
+176
-128
No files matched your search
@@ -75,7 +75,7 @@ const char syscpupresentfile[] = "/sys/devices/system/cpu/present";
|
||||
|
||||
std::string GetCPUString() {
|
||||
std::string procdata;
|
||||
bool readSuccess = File::ReadFileToString(true, procfile, procdata);
|
||||
bool readSuccess = File::ReadFileToString(true, Path(procfile), procdata);
|
||||
std::istringstream file(procdata);
|
||||
std::string cpu_string;
|
||||
|
||||
@@ -98,7 +98,7 @@ std::string GetCPUString() {
|
||||
|
||||
std::string GetCPUBrandString() {
|
||||
std::string procdata;
|
||||
bool readSuccess = File::ReadFileToString(true, procfile, procdata);
|
||||
bool readSuccess = File::ReadFileToString(true, Path(procfile), procdata);
|
||||
std::istringstream file(procdata);
|
||||
std::string brand_string;
|
||||
|
||||
@@ -128,7 +128,7 @@ unsigned char GetCPUImplementer()
|
||||
unsigned char implementer = 0;
|
||||
|
||||
std::string procdata;
|
||||
if (!File::ReadFileToString(true, procfile, procdata))
|
||||
if (!File::ReadFileToString(true, Path(procfile), procdata))
|
||||
return 0;
|
||||
std::istringstream file(procdata);
|
||||
|
||||
@@ -151,7 +151,7 @@ unsigned short GetCPUPart()
|
||||
unsigned short part = 0;
|
||||
|
||||
std::string procdata;
|
||||
if (!File::ReadFileToString(true, procfile, procdata))
|
||||
if (!File::ReadFileToString(true, Path(procfile), procdata))
|
||||
return 0;
|
||||
std::istringstream file(procdata);
|
||||
|
||||
@@ -173,7 +173,7 @@ bool CheckCPUFeature(const std::string& feature)
|
||||
std::string line, marker = "Features\t: ";
|
||||
|
||||
std::string procdata;
|
||||
if (!File::ReadFileToString(true, procfile, procdata))
|
||||
if (!File::ReadFileToString(true, Path(procfile), procdata))
|
||||
return false;
|
||||
std::istringstream file(procdata);
|
||||
while (std::getline(file, line))
|
||||
@@ -199,7 +199,7 @@ int GetCoreCount()
|
||||
int cores = 1;
|
||||
|
||||
std::string presentData;
|
||||
bool presentSuccess = File::ReadFileToString(true, syscpupresentfile, presentData);
|
||||
bool presentSuccess = File::ReadFileToString(true, Path(syscpupresentfile), presentData);
|
||||
std::istringstream presentFile(presentData);
|
||||
|
||||
if (presentSuccess) {
|
||||
@@ -213,7 +213,7 @@ int GetCoreCount()
|
||||
}
|
||||
|
||||
std::string procdata;
|
||||
if (!File::ReadFileToString(true, procfile, procdata))
|
||||
if (!File::ReadFileToString(true, Path(procfile), procdata))
|
||||
return 1;
|
||||
std::istringstream file(procdata);
|
||||
|
||||
|
||||
Reference in new issue
Block a user