Commit graph

930 commits

Author SHA1 Message Date
Filippos Karapetis
a90db8008f BAGEL: Use C++ 11 range-based for loops 2025-03-27 13:47:57 +08:00
Matthew Jimenez
1e99ce9d43 GRAPHICS: Use constexpr for palette constants 2025-02-26 11:11:43 +02:00
Le Philousophe
5201b0ae39 BAGEL: Don't allocate the save state on the stack
It's big and can be allocated on heap.
2025-01-24 22:57:30 +02:00
SupSuper
d692a2c250 BAGEL: Fix slot machine path initialization (bug #15581) 2025-01-06 07:29:43 +00:00
Eugene Sandulenko
879eba5c32
CONFIGURE: Replace mt32emu component with 'midi'
This component disables all MIDI-related things when unused,
including MT-32 emulator, Fluidsynth, TiMidity and Sonivox
2024-12-26 22:54:56 +01:00
D G Turner
0438c92e67 BAGEL: Remove Unused Debug Flag Related Code
This was causing a "No debug channels were added, list is empty!"
warning to be emitted on the console during detection due to the empty
debugflag list. Easier to remove this unused code as it can be restored
if debugflags are implemented for this engine in future.

This resolves bug #15616 "Warnings in status window when adding any game".
2024-12-26 06:58:09 +00:00
Eugene Sandulenko
d780708c96 ENGINES: Add mt32emu as a feature and component
Add it to engines that have MIDI playback.

This essentially compiles the emulator only when an engine that
can potentially use it (e.g. MIDI) is enabled
2024-12-25 00:34:39 +01:00
Eugene Sandulenko
fdecb6afca ENGINES: Add components to configure.engine's explanatory comment 2024-12-25 00:34:39 +01:00
Eugene Sandulenko
3dbd8d21bd
BAGEL: Fix demo flag in detection 2024-12-07 21:16:58 +01:00
Eugene Sandulenko
101f38ba68
ENGINES: Clear ADGF_TESTING flags before release 2024-12-07 20:58:04 +01:00
SupSuper
d3040b130b BAGEL: Always limit framerate 2024-12-06 10:49:58 +00:00
SupSuper
cc971c3632 BAGEL: Fix ingame GUI getting stuck after loading via GMM 2024-12-06 10:49:57 +00:00
Filippos Karapetis
326c375390 BAGEL: Don't display the start dialog if saves exist in the demos
The demos lack the relevant start dialog resources. Fixes a crash if
saves are found demo versions
2024-11-16 19:18:04 +02:00
Cameron Cawley
e2438c2fa0 BAGEL: Allow using pixel formats other than RGB565 2024-10-24 18:24:37 +03:00
Hubert Maier
433cdf0298
JANITORIAL: BAGEL: Fix typos in comments 2024-07-27 12:51:03 +03:00
Hubert Maier
d3f070363c
JANITORIAL: BAGEL: Fix in-code typos 2024-07-27 00:51:48 +03:00
Cameron Cawley
ff530edcb1 GRAPHICS: Deprecate ManagedSurface methods that implicitly copy pixel data 2024-07-02 13:31:18 +01:00
Le Philousophe
b61bd3ff85 ENGINES: Create a type aware advanced meta engine 2024-06-30 18:39:06 +02:00
Le Philousophe
90b886097f ENGINES: Create a type aware advanced detector 2024-06-30 18:39:06 +02:00
Paul Gilbert
eb6942fbc3 BAGEL: Added 'timefreeze' console command to pause time 2024-06-23 15:25:18 -07:00
Donovan Watteau
c403ac82fa BAGEL: Fix small -Wpedantic warning 2024-06-22 06:01:41 +02:00
Cameron Cawley
1357bfe672 COMMON: Avoid including engine headers in common code for DebugChannelDef 2024-06-20 20:15:57 +01:00
Strangerke
e9b6cc42f5 BAGEL: constify some more variables, add a default case in a switch 2024-06-17 22:33:58 +01:00
Strangerke
cb624cb3f3 BAGEL: constify some more variables, change checks on _smk to return false asap in CBagFMovie 2024-06-17 22:32:20 +01:00
Strangerke
ea0eca9327 BAGEL: Constify more variables, change a switch in if/else in CBagExpression::setInfo() 2024-06-17 21:53:27 +01:00
Strangerke
b870556f99 BAGEL: add const keyword to multiple variables 2024-06-16 23:45:36 +01:00
Strangerke
0143b17ca1 BAGEL: Remove some unused includes, pass some parameters by reference 2024-06-16 23:29:40 +01:00
SupSuper
22dd76e6a8 BAGEL: Fix frame skipping when videos are out of screen 2024-06-15 09:23:00 +01:00
Paul Gilbert
3abb1edd52 BAGEL: Fix crash opening original restore dialog 2024-06-14 20:14:48 -07:00
Eugene Sandulenko
3572bff522
BAGEL: Mark engine for testing and enable by default 2024-06-14 16:55:10 +02:00
SupSuper
f36a17a645 BAGEL: Rework frame skipping in CBagCharacterObject
Fixes bugs with jammer, microwave, etc, showing the wrong values
2024-06-14 13:25:40 +01:00
SupSuper
aa629b7e30 BAGEL: Add support for Mac resource forks 2024-06-14 13:25:39 +01:00
Strangerke
6e43e41552 BAGEL: Pass some parameters as reference instead of value, remove an useless include, move some code from header to cpp file 2024-06-12 22:42:20 +01:00
Strangerke
ef80e42f33 BAGEL: remove _reversedFl in CBagFMovie 2024-06-12 22:03:05 +01:00
Strangerke
1b722f9ac0 BAGEL: Remove setHotspot(const CBofPoint point) in CBagCursor 2024-06-12 22:03:04 +01:00
Strangerke
744ebf17ca BAGEL: Remove some unused includes, reduce a couple of variable scopes, add missing parenthesis in macro definitions 2024-06-11 22:35:00 +01:00
Strangerke
c879523959 BAGEL: Fix a regression in reportMeetingStatus 2024-06-11 06:05:09 +01:00
Strangerke
e5b98997b5 BAGEL: Remove a useless include, add a default case, reduce the scope of to variables to avoid a useless intiialization 2024-06-11 06:05:08 +01:00
Strangerke
b314b79619 BAGEL: Remove a useless include, add a couple of default cases, remove useless initialization in MusicPlayer::play 2024-06-10 21:48:32 +01:00
Strangerke
d2d52ad372 BAGEL: Remove two unused rectangles in CMainWindow::attach, add a default case in CNavWindow::onLButtonDown 2024-06-10 21:43:06 +01:00
Strangerke
b102e2d6b0 BAGEL: Remove unused nMaleMembers and nFemaleMembers counters as they are not useful 2024-06-10 21:32:29 +01:00
Strangerke
c17553ec74 BAGEL: Remove unreachable code 2024-06-10 21:23:46 +01:00
Strangerke
12a00a210b BAGEL: Fix regression in onListDispatchTeam introduced in 5cbd53bb32 2024-06-09 07:27:27 +01:00
Strangerke
b35e81d167 BAGEL: Some renaming in CMainWindow 2024-06-05 22:45:13 +01:00
Strangerke
2c20511a78 BAGEL: add several missing override keywords 2024-06-05 22:44:51 +01:00
Strangerke
87de02d782 BAGEL: Remove const qualifier for parameters in function declarations 2024-06-05 22:36:05 +01:00
Strangerke
d4f52b8a61 BAGEL: Various renaming 2024-06-05 22:26:43 +01:00
Strangerke
ab9e9b2a37 BAGEL: Change some more function definitions when it doesn't match the one in declaration 2024-06-04 22:23:50 +01:00
Strangerke
5cbd53bb32 BAGEL: Replace a switch by an if/else in SrafComputer 2024-06-04 22:23:50 +01:00
Strangerke
062b09c83e BAGEL: Remove useless null check before delete 2024-06-04 22:23:50 +01:00