RMG: add 'Game Type' to the RomInfoDialog

This also removes the Unknown fallback for 64DD disks,
there was never a PAL 64DD so the NTSC value was correct which I forgot
This commit is contained in:
Rosalie Wanders
2025-11-06 21:09:10 +01:00
parent da0a44d26a
commit 3290e83966
2 changed files with 26 additions and 3 deletions
@@ -32,9 +32,8 @@ RomInfoDialog::RomInfoDialog(QWidget *parent, QString file, CoreRomType romType,
this->crc2LineEdit->setText(QString::number(romHeader.CRC2, 16).toUpper());
this->gameIDLineEdit->setText(QString::fromStdString(romHeader.GameID));
this->gameRegionLineEdit->setText(QString::fromStdString(romHeader.Region));
this->systemRegionLineEdit->setText(romType == CoreRomType::Disk
? "Unknown"
: (romHeader.SystemType == CoreSystemType::NTSC ? "NTSC" : "PAL"));
this->systemRegionLineEdit->setText(romHeader.SystemType == CoreSystemType::NTSC ? "NTSC" : "PAL");
this->gameTypeLineEdit->setText(romType == CoreRomType::Disk ? "Disk" : "Cartridge");
}
RomInfoDialog::~RomInfoDialog(void)
@@ -242,6 +242,30 @@
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_10">
<item>
<widget class="QLabel" name="label_10">
<property name="text">
<string>Game Type</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="gameTypeLineEdit">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>