mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 20:22:30 +01:00
Use simpler C00 unlock EDAT check in GUI
This commit is contained in:
parent
59a0cf94ab
commit
1670769119
@ -226,7 +226,7 @@ namespace rpcs3::utils
|
||||
return edat_path;
|
||||
}
|
||||
|
||||
bool verify_c00_unlock_edat(const std::string_view& content_id)
|
||||
bool verify_c00_unlock_edat(const std::string_view& content_id, bool fast)
|
||||
{
|
||||
const std::string edat_path = rpcs3::utils::get_c00_unlock_edat_path(content_id);
|
||||
|
||||
@ -239,6 +239,10 @@ namespace rpcs3::utils
|
||||
return false;
|
||||
}
|
||||
|
||||
// Use simple check for GUI
|
||||
if (fast)
|
||||
return true;
|
||||
|
||||
u128 k_licensee = get_default_self_klic();
|
||||
std::string edat_content_id;
|
||||
|
||||
@ -325,10 +329,10 @@ namespace rpcs3::utils
|
||||
// This is a trial game. Check if the user has EDAT file to unlock it.
|
||||
const auto c00_title_id = psf::get_string(psf, "TITLE_ID");
|
||||
|
||||
if (fs::is_file(game_path + "/C00/PARAM.SFO") && verify_c00_unlock_edat(content_id))
|
||||
if (fs::is_file(game_path + "/C00/PARAM.SFO") && verify_c00_unlock_edat(content_id, true))
|
||||
{
|
||||
// Load full game data.
|
||||
sys_log.notice("Verified EDAT file %s.edat for trial game %s", content_id, c00_title_id);
|
||||
sys_log.notice("Found EDAT file %s.edat for trial game %s", content_id, c00_title_id);
|
||||
return game_path + "/C00";
|
||||
}
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ namespace rpcs3::utils
|
||||
std::string get_cache_dir();
|
||||
|
||||
std::string get_rap_file_path(const std::string_view& rap);
|
||||
bool verify_c00_unlock_edat(const std::string_view& content_id);
|
||||
bool verify_c00_unlock_edat(const std::string_view& content_id, bool fast = false);
|
||||
std::string get_sfo_dir_from_game_path(const std::string& game_path, const std::string& title_id = "");
|
||||
|
||||
std::string get_custom_config_dir();
|
||||
|
Loading…
Reference in New Issue
Block a user