naomi: wrong path when looking for gdrom in parent rom folder

This commit is contained in:
flyinghead 2021-01-15 10:18:15 +01:00
parent f3b86f6c14
commit 3dc3f7b7c2
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ void GDCartridge::device_start()
gdrom = OpenDisc((gdrom_path + ".gdi").c_str());
if (gdrom_parent_name != nullptr && gdrom == nullptr)
{
std::string gdrom_parent_path = get_game_basename() + "/" + gdrom_parent_name;
std::string gdrom_parent_path = get_game_dir() + "/" + gdrom_parent_name + "/" + gdrom_name;
gdrom = OpenDisc((gdrom_parent_path + ".chd").c_str());
if (gdrom == nullptr)
gdrom = OpenDisc((gdrom_parent_path + ".gdi").c_str());