1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Adds new Electron configuration options to the Qt UI.

This commit is contained in:
Thomas Harte 2021-01-31 10:13:32 -05:00
parent 3d85e6bb97
commit 41a618c957
2 changed files with 18 additions and 0 deletions

View File

@ -1164,6 +1164,8 @@ void MainWindow::start_electron() {
target->has_dfs = ui->electronDFSCheckBox->isChecked(); target->has_dfs = ui->electronDFSCheckBox->isChecked();
target->has_adfs = ui->electronADFSCheckBox->isChecked(); target->has_adfs = ui->electronADFSCheckBox->isChecked();
target->has_ap6_rom = ui->electronAP6CheckBox->isChecked();
target->has_sideways_ram = ui->electronSidewaysRAMCheckBox->isChecked();
launchTarget(std::move(target)); launchTarget(std::move(target));
} }
@ -1298,6 +1300,8 @@ void MainWindow::launchTarget(std::unique_ptr<Analyser::Static::Target> &&target
/* Electron. */ \ /* Electron. */ \
CheckBox(electronDFSCheckBox, "electron.hasDFS"); \ CheckBox(electronDFSCheckBox, "electron.hasDFS"); \
CheckBox(electronADFSCheckBox, "electron.hasADFS"); \ CheckBox(electronADFSCheckBox, "electron.hasADFS"); \
CheckBox(electronAP6CheckBox, "electron.hasAP6"); \
CheckBox(electronSidewaysRAMCheckBox, "electron.fillSidewaysRAM"); \
\ \
/* Macintosh. */ \ /* Macintosh. */ \
ComboBox(macintoshModelComboBox, "macintosh.model"); \ ComboBox(macintoshModelComboBox, "macintosh.model"); \

View File

@ -201,6 +201,20 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QCheckBox" name="electronAP6CheckBox">
<property name="text">
<string>With Advanced Plus 6 Utility ROM</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="electronSidewaysRAMCheckBox">
<property name="text">
<string>Fill unused ROM banks with sideways RAM</string>
</property>
</widget>
</item>
<item> <item>
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">