mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-07-11 01:24:01 +02:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user