|
18 | 18 | #include "qd/qui/uiMessages.h" |
19 | 19 | #include "qd/stl/algorithm.h" |
20 | 20 | #include "qd/stl/string.h" |
| 21 | +#include "quaesar_config.h" |
21 | 22 |
|
22 | 23 |
|
23 | 24 | namespace qsr { |
@@ -198,22 +199,28 @@ void UaeOptionsDlg::onUiNodeCreated(qd::UiNodeCreator* mk) { |
198 | 199 | setSize({600, 400}); |
199 | 200 |
|
200 | 201 | UCategory* pCat; |
201 | | - |
202 | 202 | createCategory(EOptionCat::UNDEF, EOptionCat::ROOT); |
| 203 | + |
203 | 204 | if (pCat = createCategory(EOptionCat::QUICK_START, EOptionCat::ROOT)) { |
204 | 205 | pCat->title = "Quick Start Options"; |
205 | 206 | } |
206 | 207 |
|
207 | 208 | // /*UCategory* pCatHW =*/createCategory(EOptionCat::HARDWARE, EOptionCat::ROOT); |
208 | | - // /*UCategory* pCatHost =*/createCategory(EOptionCat::HOST, EOptionCat::ROOT); |
| 209 | + |
| 210 | + if (pCat = createCategory(EOptionCat::HOST, EOptionCat::ROOT)) { |
| 211 | + pCat->title = "Main options"; |
| 212 | + createOption(pCat)->setDrawCb( |
| 213 | + [](OptionDrawCtx*) { ImGui::Checkbox("Use ESC key to Quit", &g_cfg_main->quitByEsc); }); |
| 214 | + } |
| 215 | + |
209 | 216 | // /*UCategory* pCatCpu =*/createCategory(EOptionCat::CPU, EOptionCat::HARDWARE); |
210 | 217 |
|
211 | | - if (UCategory* pCat = createCategory(EOptionCat::FLOPPY, EOptionCat::HARDWARE)) { |
| 218 | + if (pCat = createCategory(EOptionCat::FLOPPY, EOptionCat::HARDWARE)) { |
212 | 219 | pCat->title = "Floppy Drives Options"; |
213 | | - createOption(pCat, "Floppy 0")->setDrawCb([](OptionDrawCtx* ctx) { draw_opt_floppy_cfg(ctx, 0); }); |
214 | | - createOption(pCat, "Floppy 1")->setDrawCb([](OptionDrawCtx* ctx) { draw_opt_floppy_cfg(ctx, 1); }); |
215 | | - createOption(pCat, "Floppy 2")->setDrawCb([](OptionDrawCtx* ctx) { draw_opt_floppy_cfg(ctx, 2); }); |
216 | | - createOption(pCat, "Floppy 3")->setDrawCb([](OptionDrawCtx* ctx) { draw_opt_floppy_cfg(ctx, 3); }); |
| 220 | + createOption(pCat)->setDrawCb([](OptionDrawCtx* ctx) { draw_opt_floppy_cfg(ctx, 0); }); |
| 221 | + createOption(pCat)->setDrawCb([](OptionDrawCtx* ctx) { draw_opt_floppy_cfg(ctx, 1); }); |
| 222 | + createOption(pCat)->setDrawCb([](OptionDrawCtx* ctx) { draw_opt_floppy_cfg(ctx, 2); }); |
| 223 | + createOption(pCat)->setDrawCb([](OptionDrawCtx* ctx) { draw_opt_floppy_cfg(ctx, 3); }); |
217 | 224 | } |
218 | 225 | } |
219 | 226 |
|
|
0 commit comments