Andrea Odetti
6066a52592
applen: add namespace and remove tabs.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-25 16:25:09 +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
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
6ca8aedcf2
Add NFrame.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-14 14:39:18 +00:00
Andrea Odetti
4e357b59bd
Updates from AW's master.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-13 13:09:03 +00:00
Andrea Odetti
9ff3544535
Support F5 = DriveSwap() in applen.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-03 18:50:17 +00:00
Andrea Odetti
ed27650368
Allow users to specify Paddle device for applen.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-31 14:34:00 +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
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
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
edb93cbaa0
Integrate memory changes from AW.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-11 08:28:16 +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
a5734cac10
Use GetAppleWindowTitle() from AW.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-29 16:37:45 +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
cadb72442a
Use Video.cpp "as is".
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-22 09:36:28 +00:00
Andrea Odetti
c7a8c628e4
Changes required from upstream.
2020-11-12 18:43:04 +00: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
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
dab1735a69
Logging / Config replated changes.
...
sa2 / applen add flag to load qt init file (--qt-ini) (read only for now)
unify logging (--log)
Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:14:01 +01:00
mariofutire@gmail.com
bc74b5fbfb
Implement save-on-exit configuration flag.
...
Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:13:50 +01:00
Andrea Odetti
24621373dd
Better way to share data between ncurses and sdl2.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-09 19:13:42 +01:00
Andrea Odetti
2ebcb856a3
dirname cant return null.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-12 10:29:45 +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
ad1b6774ae
Fix Mockingboard in applen.
...
(not playing, but not crashing)
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-05 19:10:24 +01:00
Andrea Odetti
5536050b71
Use c++ sleep_for rather than usleep.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-06-30 14:02:39 +01: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
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
35a81f8009
applen: add --log, --ntsc, and log time till first $C000 access.
2019-11-23 20:34:24 +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
7c65e0f972
Add option to run without screen update in ncurses.
...
Useful to profile core.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-03 16:22:28 +00:00
Andrea Odetti
92c257d1e5
Improve error handling in applen and ability to build outside the source tree.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-03 10:21:02 +00:00
Andrea Odetti
4d2febfb42
Linux changes for current version of AppleWin.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-08-10 16:16:44 +01:00
Andrea Odetti
a51118cf35
Fix all disk related function due to Disk class introduction.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-04-20 16:43:52 +01:00
Andrea Odetti
ba8221d3ee
Free resources on exit.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2018-02-13 08:39:17 +00:00
Andrea Odetti
7a6ad9f363
Ensure the MouseCard is properly reset when the emulator restarts.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2018-02-06 16:21:35 +00:00
Andrea Odetti
21156bb606
Merge remote-tracking branch 'upstream/master'
...
# Conflicts:
# source/Disk.cpp
# source/DiskImageHelper.h
# source/Memory.cpp
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2018-02-03 20:35:04 +00:00
Andrea Odetti
3733da1af7
Remove configuration from libappleii and delegate it to the frontends.
...
In qapple we use QSettings.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00
Andrea Odetti
ede695bcd6
Move VideoBenchmark to libapple to be reused.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00
Andrea Odetti
ce124e0aa0
It is too easy to set the wrong CPU and then nothing works.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00
Andrea Odetti
91678645a7
Add option to save configuration on exit.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00
Andrea Odetti
c9a6d7688e
Add option to create missing floppy disks.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00
Andrea Odetti
eba2cea5ca
Display moving average of speed.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00
Andrea Odetti
df53415d98
Add option to benchmark emulator.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00
Andrea Odetti
863a9d3671
Write a little measure about current execution speed.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00
Andrea Odetti
b63f232ebe
Use evdev to handle a joystick.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00
Andrea Odetti
d8d2cc2412
Clean at the end.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00
Andrea Odetti
1d12b788ea
Fix missing returns.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00
Andrea Odetti
ca7542f39a
Read (part of) the registry.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2017-10-14 19:18:44 +01:00