Co-authored-by: briaguya <briaguya@alice>
This commit is contained in:
briaguya 2023-05-07 20:48:55 -04:00 committed by GitHub
parent fac898d759
commit f5aacaf38b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,7 +99,7 @@ void GameConfig::ConfigFunc_EntranceList(const tinyxml2::XMLElement& element)
{ {
std::string fileName = element.Attribute("File"); std::string fileName = element.Attribute("File");
std::vector<std::string> lines = std::vector<std::string> lines =
File::ReadAllLines(Path::GetDirectoryName(configFilePath) / fileName); DiskFile::ReadAllLines(Path::GetDirectoryName(configFilePath) / fileName);
for (auto& line : lines) for (auto& line : lines)
entranceList.emplace_back(std::move(line)); entranceList.emplace_back(std::move(line));
@ -109,7 +109,7 @@ void GameConfig::ConfigFunc_specialEntranceList(const tinyxml2::XMLElement& elem
{ {
std::string fileName = element.Attribute("File"); std::string fileName = element.Attribute("File");
std::vector<std::string> lines = std::vector<std::string> lines =
File::ReadAllLines(Path::GetDirectoryName(configFilePath) / fileName); DiskFile::ReadAllLines(Path::GetDirectoryName(configFilePath) / fileName);
for (auto& line : lines) for (auto& line : lines)
specialEntranceList.emplace_back(std::move(line)); specialEntranceList.emplace_back(std::move(line));