asvitkine
44c7e447a7
Merge pull request #35 from dsumorok/buildfix
...
Buildfix
2013-06-02 22:32:57 -07:00
Dave Vasilevsky
e3710843b1
FreeBSD amd64 fixups
...
* Look for CPU named "amd64" as well as "x86_64"
* Don't use /dev/ptmx on FreeBSD
* On amd64 FreeBSD uses SIGSEGV, not SIGBUS
* Use MAP_FIXED to force allocations within 32-bits, it's the only way
* Need <sys/param.h> for SHMLBA
* The old offsetof() fix is no longer needed
* Preliminary work on instruction skipping
2013-05-30 21:34:30 -04:00
Dan Sumorok
1bc3691805
Removed clean rule for etherslavetool.
2013-05-05 14:18:10 -04:00
Dan Sumorok
93effd9192
Darwin/lowmem and Darwin/pagezero do not need to be removed for clean.
2013-05-01 06:55:49 -04:00
Dan Sumorok
a421d35b9d
Fix for OS X build under x-windows. Separated out sound option.
2013-04-30 20:41:50 -04:00
Dave Vasilevsky
26d5f6b7f2
SDL: Allow fullscreen toggle in BasiliskII
2013-04-24 04:13:14 -04:00
Dave Vasilevsky
eceafc6200
SDL: Allow toggling fullscreen/windowed mode
2013-04-24 04:13:07 -04:00
Dave Vasilevsky
efae88ea7c
SDL: Let video driver know about cursor type change
2013-04-24 04:12:06 -04:00
Dave Vasilevsky
ff423fe7c9
SDL: Let driver_base be reused in a different video mode
...
Split init() into one-time initialization, and adaptation to a new video mode.
2013-04-24 04:09:47 -04:00
Dave Vasilevsky
e9c913c4ae
SDL: Completely collapse fullscreen/window drivers
2013-04-24 03:30:52 -04:00
Dave Vasilevsky
9e807c884c
SDL: Move init() method into base
2013-04-24 03:30:52 -04:00
Dave Vasilevsky
19529cacd4
SDL: Remove useless virtual qualifiers
2013-04-24 03:30:52 -04:00
Dave Vasilevsky
14e6e654f0
SDL: Move mouse movement to base
2013-04-24 03:30:52 -04:00
Dave Vasilevsky
d0648a7039
SDL: Make VOSF update functions apply to driver_base
...
They don't use anything special from fullscreen/windowed derived classes.
Also, get rid of unneeded friend declarations.
2013-04-24 03:30:51 -04:00
Dave Vasilevsky
2a5100e8d2
SDL: Move destruction into base
2013-04-24 03:30:51 -04:00
Dave Vasilevsky
fed95369d1
SDL: Move window title setting to base
2013-04-24 03:30:51 -04:00
Dave Vasilevsky
b2e5125868
SDL: Move cursor initialization to base
...
Also decide in just one place whether to use hardware or software cursor.
2013-04-24 03:29:53 -04:00
Dave Vasilevsky
6eb54dccbe
SDL: Move more initialization to base
...
Including blitter, gray ramp, frame buffer initialization.
2013-04-24 00:07:50 -04:00
Dave Vasilevsky
053308e4f9
SDL: Move VOSF initialization to base
2013-04-24 00:07:50 -04:00
Dave Vasilevsky
0c2658f4d1
SDL: Prepare to collapse fullscreen/window drivers
...
We want to have just one base driver that can handle both fullscreen and
windowed mode, so that we can easily switch between modes.
Create a virtual init() method to do construction, so we can move common code
from the derived classes into the base init().
2013-04-24 00:07:49 -04:00
Dave Vasilevsky
82adeb988b
SDL: Remove unused method and ivars
...
mouse_last_x, mouse_last_y and driver_window::mouse_moved() look like remnants
of X11 video, they're never really used.
2013-04-24 00:07:49 -04:00
Dave Vasilevsky
94ebea3509
SDL: Don't uselessly free the_host_buffer
...
It always points to a member of an SDL_Surface, which is freed by SDL.
2013-04-24 00:07:43 -04:00
Dave Vasilevsky
c0d7aa0004
SDL: Remove old hack, reduce flicker
...
The old SDL_QuitSubsystem workaround is probably obsolete, and causes
flicker on resolution changes.
2013-04-24 00:04:49 -04:00
Dave Vasilevsky
02d844c6a7
SDL: Make non-Mac fullscreen cursor visible
...
Issue: https://github.com/cebix/macemu/issues/26
On non-Mac platforms, driver_fullscreen constructor sets up software cursor,
but switch_to_current_mode() ask for a hardware cursor, possibly due to a typo.
Neither one ends up being drawn, so the cursor goes invisible.
This change makes them agree to use a software cursor. We should eventually
move to just one place deciding which cursor to use, so they don't have to be
kept in sync.
2013-04-22 02:06:15 -04:00
Dave Vasilevsky
2fb9487933
Mac: Fix mouse grabbing
...
If mouse is grabbed on OS X, every time the mouse cursor icon changes the
cursor is recentered. Workaround similar to Windows in video_set_cursor().
2013-04-20 19:02:33 -04:00
Dave Vasilevsky
8204105c41
Prefs: Fix buffer overrun
...
Prevent intermittent crashing when prefs contains empty lines or lines with
no spaces.
2013-04-20 19:01:54 -04:00
Dave Vasilevsky
8f27d4af9b
Standalone GUI doesn't need to pull in all the generic disks
2013-03-28 06:30:08 -04:00
Hans de Goede
2226aa4752
don't strip -g option to GCC for B2
2013-03-12 19:08:11 -04:00
Hans de Goede
90c113c43b
check for WANT_SDL_VIDEO rather than WANT_SDL when deciding to use X11
2013-03-12 18:59:58 -04:00
Hans de Goede
cb42ef255b
fix linux crash on sscanf failure
2013-03-12 18:55:58 -04:00
asvitkine
3b177f141f
Merge pull request #22 from vasi/dmg-sparsebundle
...
Sparsebundle support
2013-03-11 18:53:54 -07:00
Dave Vasilevsky
912d2e05be
disk_generic: Iterate using index instead of pointers
2013-03-11 17:10:38 -04:00
Dave Vasilevsky
c79a52f3b8
disk_generic: Distinguish between unknown disks, and unmountable disks
2013-03-11 17:08:27 -04:00
Dave Vasilevsky
cdb0338883
sparsebundle: Handle locking properly
2013-03-11 16:50:12 -04:00
Dave Vasilevsky
9953374b25
sparsebundle: Don't write zeros in unallocated space
...
Also close files when we're done with them.
2013-03-11 16:18:43 -04:00
Dave Vasilevsky
127441afb7
sparsebundle: Use pointers to member functions
2013-03-10 12:12:24 -04:00
Dave Vasilevsky
753a5c40fe
sparsebundle: Remove old TODOs
2013-03-10 12:05:43 -04:00
Dave Vasilevsky
0c8292aea3
sparsebundle: Minor fixes
...
- Allocate memory in disk_sparsebundle() constructor
- Constify constructor parameter
- Be careful with invalid fds
2013-03-10 12:03:34 -04:00
Doug Brown
0980a87e3f
Ensure ROM is above RAM in Windows.
...
Fixes black screen on newer versions of Windows.
2013-03-02 12:29:39 -08:00
Doug Brown
ed358ca618
Fix case sensitivity of MinGW basetsd.h header when compiling inside Linux.
2013-03-01 03:08:29 -08:00
asvitkine
ef5a6ef3a7
Merge pull request #19 from landonf/landonf-pty-fix
...
Set tty raw mode when using a pty.
2013-02-28 20:56:14 -08:00
Landon Fuller
2c8507ea97
Set tty raw mode when using a pty.
2013-02-25 20:24:56 -05:00
Dave Vasilevsky
17aabc4c40
Generify vhd, too
2013-02-24 15:57:18 -05:00
Dave Vasilevsky
5c7af60f16
generically search for disk types
2013-02-24 15:43:54 -05:00
Dave Vasilevsky
3af3834b8e
Basilisk deserves sparse bundles too!
2013-02-24 14:40:41 -05:00
Dave Vasilevsky
917984e6ec
Add to make links
2013-02-24 14:15:21 -05:00
Dave Vasilevsky
2a15911938
Full sparsebundle implementation
2013-02-24 14:11:29 -05:00
Dave Vasilevsky
091db05aac
Partial implementation of sparsebundles; still needs Info.plist parsing
2013-02-24 13:02:16 -05:00
Charles Lehner
76911be266
Fix compilation error on OS X.
2012-10-30 09:34:10 -04:00
Charles Lehner
349fad4d2f
Add port redirection option for networking with slirp.
...
Port forwarding allows the emulator to host servers that can be
accessed from outside the virtual network.
The code for parsing the preference option "redir" is adapted from
qemu code. The rest was already implemented.
2012-10-30 01:32:38 -04:00