mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Merge pull request #7970 from Techjar/netplay-mii-sync
NetPlay: Synchronize Mii data
This commit is contained in:
@ -60,6 +60,11 @@ std::string GetTMDFileName(u64 title_id, std::optional<FromWhichRoot> from)
|
||||
return GetTitleContentPath(title_id, from) + "/title.tmd";
|
||||
}
|
||||
|
||||
std::string GetMiiDatabasePath(std::optional<FromWhichRoot> from)
|
||||
{
|
||||
return StringFromFormat("%s/shared2/menu/FaceLib/RFL_DB.dat", RootUserPath(from).c_str());
|
||||
}
|
||||
|
||||
bool IsTitlePath(const std::string& path, std::optional<FromWhichRoot> from, u64* title_id)
|
||||
{
|
||||
std::string expected_prefix = RootUserPath(from) + "/title/";
|
||||
@ -145,4 +150,4 @@ std::string UnescapeFileName(const std::string& filename)
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
} // namespace Common
|
||||
|
@ -31,6 +31,7 @@ std::string GetTitlePath(u64 title_id, std::optional<FromWhichRoot> from = {});
|
||||
std::string GetTitleDataPath(u64 title_id, std::optional<FromWhichRoot> from = {});
|
||||
std::string GetTitleContentPath(u64 title_id, std::optional<FromWhichRoot> from = {});
|
||||
std::string GetTMDFileName(u64 title_id, std::optional<FromWhichRoot> from = {});
|
||||
std::string GetMiiDatabasePath(std::optional<FromWhichRoot> from = {});
|
||||
|
||||
// Returns whether a path is within an installed title's directory.
|
||||
bool IsTitlePath(const std::string& path, std::optional<FromWhichRoot> from = {},
|
||||
@ -42,4 +43,4 @@ std::string EscapeFileName(const std::string& filename);
|
||||
std::string EscapePath(const std::string& path);
|
||||
// Reverses escaping done by EscapeFileName
|
||||
std::string UnescapeFileName(const std::string& filename);
|
||||
}
|
||||
} // namespace Common
|
||||
|
Reference in New Issue
Block a user