Andrea Odetti
254ea8dbf6
Build libretro on travis.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 19:39:22 +00:00
Andrea Odetti
edb93cbaa0
Integrate memory changes from AW.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-11 08:28:16 +00:00
Andrea Odetti
74cb18a7a1
Remove most false positive valgrind results.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-06 13:28:29 +00:00
Andrea Odetti
1f6538f0b0
Fix build permission.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-30 15:49:48 +00:00
Andrea Odetti
2b6093861c
Add travis integration.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-30 15:29:57 +00:00
Andrea Odetti
861c87efd4
Remove pointless getScreenData() and shed some nanoseconds from screen repaint.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-30 13:38:56 +00:00
Andrea Odetti
2b3c189b07
Small changes to start - stop.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-30 09:22:35 +00:00
Andrea Odetti
40b37ccccb
Fix compilation error after merge.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-29 18:02:43 +00:00
Andrea Odetti
a5734cac10
Use GetAppleWindowTitle() from AW.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-29 16:37:45 +00:00
Andrea Odetti
9fabc71464
Use existing function VideoGetAppWindowTitle().
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-27 18:55:07 +00:00
Andrea Odetti
8e6fc89384
From AW's master, AppleWin.cpp split.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-27 13:48:53 +00:00
Andrea Odetti
9cd8b22647
Use Frame.cpp from upstream.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-24 07:51:50 +00:00
Andrea Odetti
18dd63e7eb
Add suppressions for valgrind.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-22 20:48:06 +00:00
Andrea Odetti
cadb72442a
Use Video.cpp "as is".
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-22 09:36:28 +00:00
Andrea Odetti
e2ea9c5f22
Marginally better benchmark calculation.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-21 21:01:34 +00:00
Andrea Odetti
dec8b54a9e
Write more accurate audio diagnostics.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-21 09:15:46 +00:00
Andrea Odetti
7a9ed38326
Follow upstream capitalisation of AppleWin.cpp.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-15 15:44:06 +00:00
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