Andrea Odetti
c7f8bf1280
Handle volume in SDL.
...
Make volume loglinear everywhere.
Reduce default volume to avoid annoying loud reset beep.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-14 20:08:37 +00:00
Andrea Odetti
4ff7741a41
Fix previous sdl ppp commit, too messy to revert.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-12 18:52:52 +00:00
Andrea Odetti
c7a8c628e4
Changes required from upstream.
2020-11-12 18:43:04 +00:00
Andrea Odetti
3ba2cd6d98
SDL2 add audio.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-20 15:32:45 +01:00
Andrea Odetti
da37dfe17c
QApple fix name of video types.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-18 18:43:45 +01:00
Andrea Odetti
b5630539df
Bug fix about to using the correct CardManager.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-18 10:55:58 +01:00
Andrea Odetti
7037582907
Allow to turn the circle range of a gamepad to a square (as the Apple ][).
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-17 19:19:46 +01:00
Andrea Odetti
d314546b11
Paddle: make raw interface to return values in [-1,1] to ease transformations.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-15 16:24:20 +01:00
Andrea Odetti
a72d19b386
Couple of fixes from upstream AW.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-12 20:58:32 +01:00
mariofutire@gmail.com
080198f88c
Rename ClosedApple -> SolidApple.
...
Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:14:01 +01:00
Andrea Odetti
039bfc04c3
Fix a couple of issues with RGB modes.
2020-10-07 20:45:31 +01:00
Andrea Odetti
ffddc18fe6
Dummy implementation of MultiByteToWideChar & WideCharToMultiByte.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-06 20:57:18 +01:00
Andrea Odetti
7010d9f6e1
Remove WCHAR not needed and change TCHAR to a define.
...
This helps QTCreator to show the string in the debugger.
Otherwise it would show just an array of bytes.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-13 08:20:21 +01:00
Andrea Odetti
a310d50da4
applen: partially better way to locate resources if application is launched from different folder.
...
When loading snapshot, chdir so relative paths can be found.
Ensure endwin() is called.
Use an "int" to exit the process rather than a exit().
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-12 10:24:27 +01:00
Andrea Odetti
5e2025d36c
Dummy load options for joystick and serial card to avoid warning on the screen.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-11 18:42:11 +01:00
Andrea Odetti
9c442468f5
Compile AW's Speaker.cpp and remove custom implementation.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-08 16:52:00 +01:00
Andrea Odetti
22125c9566
Add support for Base64A.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-07 20:13:43 +01:00
Andrea Odetti
40d3e822e9
Make resource interface based on "char *" as it is easier to detect a nullptr.
...
Can't change the return type to std::string.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-07 20:13:26 +01:00
Andrea Odetti
c9b4eb9aab
Fix the call to SetCurrentImageDir to be a path rather than a filename.
...
Load the path of the save state first as disks are relative to it.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-06 19:32:10 +01:00
Andrea Odetti
86ad2130a9
Make sure configuration is saved when a snapshot is loaded.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-06 19:29:18 +01:00
Andrea Odetti
a29e781de0
Reduce calls to chdir() and only do it before loading a snapshot as it helps with relative disk locations.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-05 18:07:13 +01:00
Andrea Odetti
16d17a3ab3
Partially revert memory leak fix(ed upstream).
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-05 14:51:51 +01:00
Andrea Odetti
36e774ab6e
Merge branch 'master' into mockingboard
2020-07-05 14:43:42 +01:00
Andrea Odetti
38908c7d6d
Fix memory leak.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-05 14:42:56 +01:00
Andrea Odetti
74cab50cee
Remove dependency on std::filesystem and fix a compilation error.
2020-07-05 13:20:03 +01:00
Andrea Odetti
3cfea2da07
Add some safety around IDirectSoundBuffer::Release().
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-04 19:57:15 +01:00
Andrea Odetti
5dee29fbf9
Make Mockingboard voice actually play.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-02 11:02:57 +01:00
Andrea Odetti
04ef0bf377
Compile SoundCore from AW.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-01 18:48:41 +01:00
Andrea Odetti
259428a946
Add support for a (munte) mockingboard.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-06-30 15:43:06 +01:00
Andrea Odetti
85b1f872f0
Rationalise location of some duplicate code.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-06-24 12:26:47 +01:00
Andrea Odetti
46f056f38e
Move duplicate code to their standard location.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-06-24 07:54:04 +01:00
Andrea Odetti
de24c4e90a
Necessary to avoid crash.
...
Must initialise card type at least.
2020-06-23 20:35:21 +01:00
Andrea Odetti
9282c5ddb9
Remove some duplication.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-06-18 14:06:14 +01:00
Andrea Odetti
a7e75078bb
Add support for Open/Closed Apple with Left/Right Ctrl.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-06-18 13:56:14 +01:00
Andrea Odetti
12a4180fc7
Small fixes from latest upstream changes.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-06-14 09:18:18 +01:00
Andrea Odetti
fc88f17dc5
Add support for JPlus.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-04-13 16:46:41 +01:00
Andrea Odetti
54117536fd
Add missing variable definition.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-03-31 19:19:49 +01:00
Andrea Odetti
9eb21251cb
Update compatibility layer.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-02-29 10:29:46 +00:00
Andrea Odetti
93990b0055
Small changes to compile with latest version.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-02-22 19:00:42 +00:00
Andrea Odetti
2d1021c629
Need some of Debug.cpp to link now.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-12-31 18:34:16 +00:00
Andrea Odetti
0191652565
First part of merge of new CardManager code.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-12-31 18:19:45 +00:00
Andrea Odetti
849482ea65
Add list of packages required on Raspbian.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-12-14 21:18:00 +00:00
Andrea Odetti
f50d303765
Correct video load/save state.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-12-07 15:26:45 +00:00
Andrea Odetti
20a01a5ea9
Keyboard load/save state from yaml file.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-12-07 15:25:12 +00:00
Andrea Odetti
874f4be666
Single keyboard handler.
...
Seems to work...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-12-07 11:20:37 +00:00
Andrea Odetti
35765e23e4
Fix a bug when a file canno tbe opened.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-12-05 20:59:00 +00:00
Andrea Odetti
ee09f828ee
Better benchmark calculation:
...
1) Pure Video Hi Res and Text are the same thing
2) Realistic FPS was actually wrong as it would only CPU update the video for the first 10 frames
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-29 20:19:23 +00:00
Andrea Odetti
19c9193412
Use video mode in window title.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-29 20:18:29 +00:00
Andrea Odetti
9ca7485f52
Update VideoBenchmark code to differentiate screen image generation vs blitting.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-25 21:08:01 +00:00
Andrea Odetti
151c6c92f9
Add Video settings.
...
+ F9 to cycle video modes.
2019-11-24 21:06:55 +00:00