Commit graph

197 commits

Author SHA1 Message Date
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
Andrea Odetti
35a81f8009 applen: add --log, --ntsc, and log time till first $C000 access. 2019-11-23 20:34:24 +00:00
Andrea Odetti
7529f5c659 Reworked the entire wondows.h replacement.
wincompat.h is a stripped down version coming from linapple-pie with the bare minimum common types.
Each group of functions in its own file.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-23 18:17:44 +00:00
Andrea Odetti
4792c2eeed Remove custon video processor in favour of AppleWin's.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-22 20:32:32 +00:00
Andrea Odetti
d18269fb2d First (succesful) attempt at using NTSC code in Linux.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-20 21:23:27 +00:00
Andrea Odetti
9c7abcab91 Compile NTSC * NTSC_CharSet from AppleWin.
Video is still duplicated.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-17 13:57:34 +00:00
Andrea Odetti
add4e526a9 Split dummies into duplicates of AppleWin files.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-16 17:01:11 +00:00
Andrea Odetti
54d418725e Add a few correct card names, so the snapshot loading does not fail.
But, these cards are still ignored.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-13 21:01:28 +00:00
Andrea Odetti
e638f63f6e Add safety check that ZeroMemory is never called on a c++ complex class.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-11 20:57:39 +00:00
Andrea Odetti
d44bc6c019 Improve cmake detection of required libraries.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-03 09:36:16 +00:00
Andrea Odetti
c669c101e2 minizip 2.9.0 fixes the bug.
No need for the workaround.
2019-10-12 14:28:54 +01:00
Andrea Odetti
0a6de645e0 Incorporate chat * -> std::string conversion.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-09-21 09:58:29 +01:00
Andrea Odetti
197c84d556 Add missing g_Slot2.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-09-12 21:01:42 +01:00
Andrea Odetti
907474c489 Add wrappers for StringCbXXXX functions and default RegLoadXXXX.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-08-26 10:27:38 +01:00