mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
DiscIO: Fix the wrong NAND root being used
The whole NANDContentLoader stuff is truly awful and will be removed as soon as possible. For now, this fixes a bug that was exposed by std::optional::operator*.
This commit is contained in:
@ -75,7 +75,7 @@ struct SNANDContent
|
||||
class CNANDContentLoader final
|
||||
{
|
||||
public:
|
||||
explicit CNANDContentLoader(const std::string& content_name);
|
||||
explicit CNANDContentLoader(const std::string& content_name, Common::FromWhichRoot from);
|
||||
~CNANDContentLoader();
|
||||
|
||||
bool IsValid() const;
|
||||
@ -90,6 +90,7 @@ private:
|
||||
|
||||
bool m_Valid = false;
|
||||
bool m_IsWAD = false;
|
||||
Common::FromWhichRoot m_root;
|
||||
std::string m_Path;
|
||||
IOS::ES::TMDReader m_tmd;
|
||||
IOS::ES::TicketReader m_ticket;
|
||||
@ -107,8 +108,11 @@ public:
|
||||
return instance;
|
||||
}
|
||||
|
||||
const CNANDContentLoader& GetNANDLoader(const std::string& content_path);
|
||||
const CNANDContentLoader& GetNANDLoader(u64 title_id, Common::FromWhichRoot from);
|
||||
const CNANDContentLoader&
|
||||
GetNANDLoader(const std::string& content_path,
|
||||
Common::FromWhichRoot from = Common::FROM_CONFIGURED_ROOT);
|
||||
const CNANDContentLoader&
|
||||
GetNANDLoader(u64 title_id, Common::FromWhichRoot from = Common::FROM_CONFIGURED_ROOT);
|
||||
void ClearCache();
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user