Commit graph

90 commits

Author SHA1 Message Date
Andrea Odetti
ad6ca9c940 Move Initialise/Destroy Emulator to LinuxFrame.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-12-04 12:42:02 +00:00
Andrea Odetti
6e42274033 Uthernet2 as a Card.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-12-03 19:42:53 +00:00
Andrea Odetti
9439b1b400 Incorporate VidHD fro AW.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-12-03 18:46:23 +00:00
Andrea Odetti
76317c2df1 libwindows: a very tiny step towards compilation of libretro with VS.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-11-28 18:49:17 +00:00
Andrea Odetti
3c09d75573 Rewrite the Uthernet2 as Card.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-11-19 12:39:44 +00:00
Andrea Odetti
ca05f42721 HD as a Card from AW.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-11-07 15:23:10 +00:00
Andrea
783cf233a5
Merge pull request #40 from audetto/geometry
Save load SDL2 window position.
2021-10-30 15:59:02 +01:00
Andrea Odetti
6e872d4bf1 Fix potential sign issue.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-10-30 15:47:49 +01:00
Andrea Odetti
e8bcb72771 Save / load window SDL2 window position.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-10-30 15:24:54 +01:00
Andrea Odetti
4eb070c653 Make ImGui the default SDL2 implementation.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-10-30 14:10:14 +01:00
Andrea Odetti
b16084baf3 Merge branch 'static' into update 2021-10-23 20:27:43 +01:00
Andrea Odetti
ed98c6ce01 Support (again) the Uthernet2 card.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-10-23 20:23:55 +01:00
Andrea Odetti
51b6604142 Allow code to compile as static.
To avoid the link-time interface, which does not work with Apple's linker.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-10-17 09:48:58 +01:00
Andrea Odetti
6acc688800 Changes required by latest AW code.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-10-17 09:05:32 +01:00
Andrea Odetti
53f1bf52f2 Rename interface.h -> linuxinterface.h to avoid case issues.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-10-16 19:18:53 +01:00
Andrea Odetti
1315d8050f Remove const_cast.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-07-26 19:30:40 +01:00
Andrea Odetti
34ad2d9a23 Fix https://github.com/audetto/AppleWin/issues/35
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-07-18 16:23:55 +01:00
Andrea Odetti
cd0a18de1d Updates from upstream.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-07-15 18:56:06 +01:00
Andrea Odetti
0b3e57d934 Rewrite the way full speed works.
This is more and more similar to AppleWin's logic.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-06-07 18:34:17 +01:00
Andrea Odetti
2d60d802a2 Normalise paths.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-29 18:21:44 +01:00
Andrea Odetti
dfae404334 Fix option parsing.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-29 06:53:57 +01:00
Andrea Odetti
db2f9be009 sa2: add some logic to implement Full Speed.
Because we run a frame at a time, this is a bit different than in AppleWin.
Run up to 5 extra frames.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-28 19:07:58 +01:00
Andrea Odetti
a059fad539 Add support for custom ROMs.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-27 13:40:57 +01:00
Andrea Odetti
5c96069a3f Set g_sProgramDir so symbols can be found. 2021-05-26 17:12:19 +01:00
Andrea Odetti
bde3eb92b0 Improve symmetry of Constructor/Destructor functions.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-24 09:22:01 +01:00
Andrea Odetti
7b09bacb01 Initialisation: some fixes.
Ensure log file is created before it is used the first time.
Only close the log file once at the end.

https://github.com/audetto/AppleWin/issues/30

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-23 20:06:36 +01:00
Andrea Odetti
09da101cbb FileRegistry: fix problem with conf file not created.
https://github.com/audetto/AppleWin/issues/30

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-23 20:04:59 +01:00
Andrea Odetti
329c19c8d9 Handle MODE_DEBUG in main loop.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-16 18:44:16 +01:00
Andrea Odetti
22a9c64010 Uthernet 2: add settings.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-05 15:56:10 +01:00
Andrea Odetti
bbb698ece1 Compile TFE and drop the duplicate.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-17 19:07:21 +01:00
Andrea Odetti
7a8a162d78 AutoSave configuration for ease of use.
Add option to load .ini file from different location.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-04 18:56:53 +01:00
Andrea Odetti
dd683e8e48 ImGui: display all current registry settings.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-04 14:33:04 +01:00
Andrea Odetti
b56ccf8eb4 Add Reset(s) buttons.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-27 20:11:47 +00:00
Andrea Odetti
11c44233b4 Revisit initialisation to drive it all from the FrameBase.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-27 18:48:05 +00:00
Andrea Odetti
fec69e1f72 Untabify.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-27 14:45:31 +00:00
Andrea Odetti
cbf9b078c6 sa2: remove multithreading.
Obsolete with recent Pi4 hardware, and even with Pi3, advantage is little.
2021-03-21 12:08:30 +00:00
Andrea Odetti
dd6455ceb9 Add 6502 disassembler.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-07 20:32:24 +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
3e5a6aa520 Extend geometry arg to WxH(+X+Y).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-20 15:21:53 +00:00
Andrea Odetti
a75833847e Add cmd line option to switch off vsync.
Useful to profile.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-13 13:09:55 +00:00
Andrea Odetti
d912026f3e Add options to specify SDL window size via cmd line arguments.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-13 12:56:06 +00:00
Andrea Odetti
7865fc3457 First meaningful usage of ImGui features.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-07 16:10:54 +00:00
Andrea Odetti
4ae655caab Fix a few issues reported by clang.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-07 13:46:50 +00:00
Andrea Odetti
989410c17d Integrate Dear ImGui with SDL to reduce code duplication.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 16:55:08 +00:00
Andrea Odetti
ea0a3cb5ba Fix string comparison in cmake.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-04 10:12:51 +00:00
Andrea Odetti
5594c4fbc8 Fix for in-place builds.
Which are not recommended anyway.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-03 18:34:53 +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
620fa10454 Remove redundant CPU check and data.h / .cpp. 2021-01-16 16:26:43 +00:00