mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Fix missing game licence logging (#10402)
This commit is contained in:
parent
6c44664c19
commit
a7f1e788e6
1 changed files with 5 additions and 2 deletions
|
@ -136,11 +136,13 @@ namespace rpcs3::utils
|
||||||
{
|
{
|
||||||
const std::string home_dir = get_hdd0_dir() + "/home";
|
const std::string home_dir = get_hdd0_dir() + "/home";
|
||||||
|
|
||||||
|
std::string rap_path;
|
||||||
|
|
||||||
for (auto&& entry : fs::dir(home_dir))
|
for (auto&& entry : fs::dir(home_dir))
|
||||||
{
|
{
|
||||||
if (entry.is_directory && check_user(entry.name))
|
if (entry.is_directory && check_user(entry.name))
|
||||||
{
|
{
|
||||||
std::string rap_path = fmt::format("%s/%s/exdata/%s.rap", home_dir, entry.name, rap);
|
rap_path = fmt::format("%s/%s/exdata/%s.rap", home_dir, entry.name, rap);
|
||||||
if (fs::is_file(rap_path))
|
if (fs::is_file(rap_path))
|
||||||
{
|
{
|
||||||
return rap_path;
|
return rap_path;
|
||||||
|
@ -148,7 +150,8 @@ namespace rpcs3::utils
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {};
|
// Return a sample path tested for logging purposes
|
||||||
|
return rap_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string get_sfo_dir_from_game_path(const std::string& game_path, const std::string& title_id)
|
std::string get_sfo_dir_from_game_path(const std::string& game_path, const std::string& title_id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue