Andrea Odetti
32d4c32524
Use macros to avoid duplication.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-28 18:45:04 +00:00
Andrea Odetti
3a063463ca
For consistency with Registry::instance.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-28 18:44:47 +00:00
Andrea Odetti
04fe254521
Fix some access violation (NPE).
...
Due to usage global variables (instances) and the way deleters works, we need to fully delete the old one, before creating the new one.
Otherwise the old's deleter remove instances after the new one has set them.
2020-12-28 15:46:08 +00:00
Andrea Odetti
3d79b7983d
Try to use the image as FD first and HD if this fails.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-28 15:35:19 +00:00
Andrea Odetti
38ecf366d6
Make sure interfaces are removed on unload as otherwise it causes seg fault on unloading.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-28 15:05:14 +00:00
Andrea Odetti
87ddb8033f
Expose some variable to retroarch.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-28 15:04:24 +00:00
Andrea Odetti
2c9e4561df
Share some more registry-related code.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-28 11:35:58 +00:00
Andrea Odetti
84b6afe758
Hide a couple of internals in an anonymous namespace.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-27 20:26:07 +00:00
Andrea Odetti
7d6439fefd
Introduce a LinuxFrame.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-27 20:25:42 +00:00
Andrea Odetti
675d1316a9
Add a Registry interface to for more flexibility on case by case usage.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-27 19:43:35 +00:00
Andrea Odetti
093e4d7146
Print less audio - related messages.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-27 13:34:25 +00:00
Andrea Odetti
5bdc62eff3
In linux, save log to /tmp.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-27 13:32:42 +00:00
Andrea Odetti
9068d47a44
Rename to applewin_libretro.so
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-26 20:38:30 +00:00
Andrea Odetti
2e654a0fcc
libretro: add abiity to load snapshot file.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-26 20:38:07 +00:00
Andrea Odetti
05321679f8
Clarify what path is required.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-26 19:31:07 +00:00
Andrea Odetti
175491f250
libretro core: fix (most?) audio glitches.
...
It was reading a number of bytes not multiple of "2 * channels".
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-26 19:28:51 +00:00
Andrea Odetti
1a5ec9ec0f
libretro: play speaker audio (with some glitches).
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-25 21:59:48 +00:00
Andrea Odetti
947b39763f
Rename folder retro -> libretro for consistency.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-23 19:36:11 +00:00
Andrea Odetti
bea7bac3ab
Rename folder sa2 -> sdl for consistency.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-23 19:25:25 +00:00
Andrea Odetti
2fecd3bd1c
Rename folder qapple -> qt for consistency.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-23 19:23:13 +00:00
Andrea Odetti
e85eb32a0a
Add some controls via the joypad (video mode, 50% scan lines and reset).
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-23 18:55:26 +00:00
Andrea Odetti
cb2f9b6177
Re-enable keyboard.
...
Print a short message informing the user about game focus mode.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-23 17:44:34 +00:00
Andrea Odetti
a1f67585d9
Add support for retropads, with and without analog extension.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-23 16:38:22 +00:00
Andrea Odetti
eae49b3f41
Integrate AW changes about IPropertySheet.
2020-12-20 16:35:44 +00:00
Andrea Odetti
ba6aaf6775
applen: make --headless really skip ncurses initialisation.
...
Stop with Ctrl-C.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-19 15:40:16 +00:00
Andrea Odetti
10eeeda581
Add support for the RetroPad and disable keyboard.
...
How they can coexist is still not clear to me.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-19 14:26:48 +00:00
Andrea Odetti
e6532deea3
Only draw the borderless video buffer.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-19 14:17:49 +00:00
Andrea Odetti
986cf9b896
Make size of hi-res for applen work on Pi3.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-15 17:37:21 +00:00
Andrea Odetti
5de5af3fe8
Move all initialisation for (sa2, applen, retro2) to common2.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-13 19:47:30 +00:00
Andrea Odetti
5c7eaea49e
applen: remove unused left buffer.
...
Move keys to ALT to resize the window.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-13 18:52:39 +00:00
Andrea Odetti
f28a806253
Fix creation of config dir.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-13 17:57:34 +00:00
Andrea Odetti
758e231565
Remove wrong file.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 20:07:17 +00:00
Andrea Odetti
449e3d2d68
Fix cmake config.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 19:45:59 +00:00
Andrea Odetti
c2f4d8ed34
Bite the bullet and flip the video buffer in software.
...
Until a better solution is found.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 19:27:28 +00:00
Andrea Odetti
e461847a49
libretro: add support for Open / Solid Apple keys.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 19:25:43 +00:00
Andrea Odetti
ab655cda40
Move keyboard to a callback system.
...
The "switch" is the same as the SDL version.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 18:47:15 +00:00
Andrea Odetti
94b7d66096
Remove hard-coded libretro path.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 18:46:56 +00:00
Andrea Odetti
54232b988b
Accept a few more disk types.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 18:46:56 +00:00
Andrea Odetti
120cb8be50
It is not clear to me how the Input API works.
...
This is copied (without understanding) from other examples.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 18:46:56 +00:00
Andrea Odetti
cec0c10286
libretro: first "working" versions.
...
draws video upside down
accepts keys (O crashes, and others have overloaded meaning)
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 18:46:56 +00:00
Andrea Odetti
b95bcadfe9
Fix bitmap loading.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 18:46:56 +00:00
Andrea Odetti
7f441060f2
Some change to better structure the code.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 18:46:53 +00:00
Andrea Odetti
40b838aeb9
Temporary step to load resources in libretro.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 18:46:06 +00:00
Andrea Odetti
c176b3d2ff
Add skeleton of a libretro core for AW.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-12 18:45:58 +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
fb708ca7b8
Add ability to disable main loop.
...
Useful to validate with valgrind.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-07 13:13:42 +00:00
Andrea Odetti
81664c60aa
Add support for Pause / Restart key.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-06 19:53:35 +00:00
Andrea Odetti
092a74f5b3
Add F11 Save State confirmation as it is too easy to confuse with F12.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-06 18:28:17 +00:00
Andrea Odetti
1d07215f78
Add ability to Save/Load Snapshot F11/F12.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-06 18:03:41 +00:00
Andrea Odetti
6cb2e0bbb0
Fix VideoDestroy.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-06 13:27:43 +00:00