Commit graph

27 commits

Author SHA1 Message Date
Andrea Odetti
56511affa2 libretro: add namespace ra2 and remove tabs.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-25 16:24:52 +00:00
Andrea Odetti
3b917e93be common2: add namespace and reformat everything with space over tabs.
This makes it "possible" to use other editors (than emacs).

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-25 16:04:50 +00:00
Andrea Odetti
bb2fce9e72 Fix libretro compiler bug.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-31 14:31:19 +00:00
Andrea Odetti
cc55d9e681 Modern syntax: virtual -> override.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-31 13:55:43 +00:00
Andrea Odetti
be1772bc37 Use RAII pattern to initialise and clear AppleWin emulator.
Plays better with exceptions.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-31 13:26:23 +00:00
Andrea Odetti
f61e73b639 Move resources, bitmaps and messageboxes into Frames.
And remove a few windows.h interface functions used before.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-20 19:07:18 +00:00
Andrea Odetti
54a3bbf773 RetroFrame.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-13 17:48:25 +00:00
Andrea Odetti
8e36c2c7b3 Add header files to cmake project.
So they appear in QtCreator.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-12 12:52:26 +00:00
Andrea Odetti
0aec7061c3 Incorporate changes from AW's master.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-03 18:44:44 +00:00
Andrea Odetti
ae33493da7 Merge from AW's master.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-03 18:10:07 +00:00
Andrea Odetti
247b51b2ab Integration of GetVideo().
Part 1.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-28 19:42:04 +00:00
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
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
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