Commit Graph
19 Commits
Author SHA1 Message Date
Tom Charlesworth 0e1e4caa71 Config->Slots: Just use MessageBox() for a modal dialog (#1507, PR #1508) 2026-09-19 21:47:59 +01:00
Kelvin Lee 3e8054b462 Replace BOOL (almost all) with bool (PR #1509)
. Remove uses of !!
2026-07-26 21:49:53 +01:00
Kelvin Lee 926c592f75 Replace some BOOL usages with proper bool (PR #1500)
1. Registry functions
   The set of functions are changed to consistently use bool arguments.
   The macros are changed to inline functions to improve type checking.
   RegSaveValue() are overloaded with help of templates to reduce
   typecasting at call sites. For instance, bool value would be converted
   consistently instead of relying on call sites to convert bool to int values.
2. Memory functions
   BOOL usages were unnecessary. Mostly internal usages which can simply be bool.
3. FrameBase
   Some member variables are changed to bool.
   BOOL was used because of those Registry functions.

Additional changes:
- Some expressions are forced to be bool when assigning to bool variables.
2026-06-06 14:12:42 +01:00
tomcw 125898724a Config Slots: fix for cancelling SSC sub-dialog (fixes #1502) 2026-05-30 14:52:54 +01:00
Andrea 56168d4132 Fix crash when a HD card is on a slot != 7 (PR #1498)
* Snapshot_GetDefaultFilenameAndPath(): fix segfault. SLOT7 -> i
* Disk & HardDisk: tidy up casts and iterations.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2026-05-17 19:13:11 +01:00
tomcw e586865730 Slots config for rw3: if user hasn't touched slider, then pressing 'OK' on Options dialog won't query it. (#1470)
. Preserve finer grain memory size (don't round up to 1MiB)
2026-04-18 17:32:07 +01:00
tomcw 0f6bf4e171 Slots config for HDC: (#1470)
. Support HDC firmware selection from combo: auto, SP, BLK2, BLK4 modes
2026-04-18 12:31:04 +01:00
tomcw 17b65ffd8a Slots config:
. On selecting a new card in a slot, then reset to the card's default options
. On opening Config dialog, reset config for empty slots
. On HDD insert: check for dup image-name against all other 7 units
2026-04-18 10:46:54 +01:00
tomcw 11c1dae084 Slots config: ignore when same image is selected for floppy or HDD image 2026-04-17 22:15:31 +01:00
tomcw 1ce0a84b1b Refactor CPageSlots::InitOptions() (fixes #1487) 2026-04-11 14:44:17 +01:00
Andrea f513fd2f6a CardManager: make GetCardChoicesForSlot()/AuxSlot() more x-platform. (PR #1484)
Move the Windows UI string to a common separate function.
2026-04-05 10:50:08 +01:00
tomcw 8219799b83 Minor UI tweaks:
. Don't assume slot 6 has a Disk II card
. Disk II config dialog: check the 'show status' box regardless of slot
2026-04-03 15:18:44 +01:00
tomcw 599e81d07f Config Slots: Reset to Default: set MB's speech chips to defaults
On loading save-state: Save any MBs's speech chips to Registry
2026-03-23 20:52:23 +00:00
tomcw 91ca49f4f5 Slots config: Disk II: add option for 13-sector firmware, and save to Registry 2026-03-20 15:20:42 +00:00
tomcw 75e04ba54a Minor: Fix/improve some comments 2026-03-17 21:54:28 +00:00
tomcw abbf5d996a Slots config: Mockingboard/Phasor cards: add option for speech chips, and save to Registry 2026-03-15 13:25:19 +00:00
tomcw b004316a03 Slots config: Saturn card: add option for mem size (16K-128K), and save to Registry 2026-03-14 16:02:13 +00:00
tomcw 3b30fb4a55 Config: fix for new SSC added, and COM port selected 2026-03-08 17:36:18 +00:00
TomCh 80ec6e5545 Improve Configuration GUI for better slot/card selection (#853, PR #1462)
. Add PropSheetPage: Slots (and include 'Reset to Default')
  - include config options for some cards
. Remove PropSheetPages: Sound & Disk
. Config page: refactor and add 'Reset all to Default'
. Input page: refactor
. Advanced page: refactor
2026-03-07 22:00:07 +00:00