mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 06:48:33 +00:00
DolphinWX: Use title ID from ISOFile when possible
This skips creating volume objects, which can take a while.
This commit is contained in:
parent
c36d24a851
commit
71d105e545
4 changed files with 10 additions and 30 deletions
|
@ -361,18 +361,11 @@ std::vector<DiscIO::Language> GameListItem::GetLanguages() const
|
|||
|
||||
const std::string GameListItem::GetWiiFSPath() const
|
||||
{
|
||||
std::unique_ptr<DiscIO::IVolume> iso(DiscIO::CreateVolumeFromFilename(m_FileName));
|
||||
std::string ret;
|
||||
|
||||
if (iso == nullptr)
|
||||
return ret;
|
||||
|
||||
if (iso->GetVolumeType() != DiscIO::Platform::GAMECUBE_DISC)
|
||||
if (m_Platform != DiscIO::Platform::GAMECUBE_DISC)
|
||||
{
|
||||
u64 title_id = 0;
|
||||
iso->GetTitleID(&title_id);
|
||||
|
||||
const std::string path = Common::GetTitleDataPath(title_id, Common::FROM_CONFIGURED_ROOT);
|
||||
const std::string path = Common::GetTitleDataPath(m_title_id, Common::FROM_CONFIGURED_ROOT);
|
||||
|
||||
if (!File::Exists(path))
|
||||
File::CreateFullPath(path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue