Merge pull request #2194 from Cacodemon345/newqt

qt: XT IDE should be XTA
This commit is contained in:
Miran Grča
2022-03-05 15:39:12 +01:00
committed by GitHub
5 changed files with 7 additions and 6 deletions

View File

@@ -705,6 +705,7 @@ void HarddiskDialog::on_comboBoxBus_currentIndexChanged(int index) {
break;
}
if (chanIdx == 0xFF) chanIdx = 0;
ui->comboBoxChannel->setCurrentIndex(chanIdx);
}

View File

@@ -28,7 +28,7 @@ void Harddrives::populateBuses(QAbstractItemModel *model) {
model->removeRows(0, model->rowCount());
model->insertRows(0, 6);
model->setData(model->index(0, 0), "MFM/RLL");
model->setData(model->index(1, 0), "XT IDE");
model->setData(model->index(1, 0), "XTA");
model->setData(model->index(2, 0), "ESDI");
model->setData(model->index(3, 0), "IDE");
model->setData(model->index(4, 0), "ATAPI");
@@ -97,7 +97,7 @@ QString Harddrives::BusChannelName(uint8_t bus, uint8_t channel) {
busName = QString("MFM/RLL (%1:%2)").arg(channel >> 1).arg(channel & 1);
break;
case HDD_BUS_XTA:
busName = QString("XT IDE (%1:%2)").arg(channel >> 1).arg(channel & 1);
busName = QString("XTA (%1:%2)").arg(channel >> 1).arg(channel & 1);
break;
case HDD_BUS_ESDI:
busName = QString("ESDI (%1:%2)").arg(channel >> 1).arg(channel & 1);

View File

@@ -238,10 +238,12 @@ plat_path_abs(char *path)
void
plat_path_normalize(char* path)
{
#ifdef Q_OS_WINDOWS
while (*path++ != 0)
{
if (*path == '\\') *path = '/';
}
#endif
}
void

View File

@@ -178,6 +178,7 @@ inital()
}
initialized = 1;
atexit(closeal);
}
void

View File

@@ -285,10 +285,7 @@ plat_path_abs(char *path)
void
plat_path_normalize(char* path)
{
while (*path++ != 0)
{
if (*path == '\\') *path = '/';
}
/* No-op. */
}
void