mirror of https://github.com/PCSX2/pcsx2.git
MemoryCardFolder: Fix rapidyaml deprecation warnings
This commit is contained in:
parent
8cc7e60138
commit
226a02a770
|
@ -64,7 +64,7 @@ static std::optional<ryml::Tree> loadYamlFile(const char* filePath)
|
||||||
static void SaveYAMLToFile(const char* filename, const ryml::NodeRef& node)
|
static void SaveYAMLToFile(const char* filename, const ryml::NodeRef& node)
|
||||||
{
|
{
|
||||||
auto file = FileSystem::OpenCFile(filename, "w");
|
auto file = FileSystem::OpenCFile(filename, "w");
|
||||||
ryml::emit(node, file);
|
ryml::emit_yaml(node, file);
|
||||||
std::fflush(file);
|
std::fflush(file);
|
||||||
std::fclose(file);
|
std::fclose(file);
|
||||||
}
|
}
|
||||||
|
@ -1755,7 +1755,7 @@ void FolderMemoryCard::AttemptToRecreateIndexFile(const std::string& directory)
|
||||||
|
|
||||||
auto file = FileSystem::OpenManagedCFile(Path::Combine(directory, "_pcsx2_index").c_str(), "w");
|
auto file = FileSystem::OpenManagedCFile(Path::Combine(directory, "_pcsx2_index").c_str(), "w");
|
||||||
if (file)
|
if (file)
|
||||||
ryml::emit(tree, file.get());
|
ryml::emit_yaml(tree, file.get());
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string FolderMemoryCard::GetDisabledMessage(uint slot) const
|
std::string FolderMemoryCard::GetDisabledMessage(uint slot) const
|
||||||
|
|
Loading…
Reference in New Issue