Replace "ReadFileToString" with a few semantically clearer wrappers.

This commit is contained in:
Henrik Rydgård committed 2024-01-25 09:55:54 +01:00
1 parent f0af76ec40
commit 1f129b6dca
15 files changed
+56 -41

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ DriverChoice::DriverChoice(const std::string &driverName, bool current, UI::Layo
Path metaPath = GetDriverPath() / driverName / "meta.json";
std::string metaJson;
if (File::ReadFileToString(true, metaPath, metaJson)) {
if (File::ReadTextFileToString(metaPath, &metaJson)) {
std::string errorStr;
meta.Read(metaJson, &errorStr);
}