32568 Commits

Author SHA1 Message Date
twinaphex
125c4f9529 Add menu_event.c 2016-09-16 16:39:30 +02:00
Rob Loach
2462f368e4 Delete .empty
Don't need this file.
2016-09-16 10:36:02 -04:00
twinaphex
b9ba1b2f29 (menu_input.c) Cleanups 2016-09-16 16:26:06 +02:00
twinaphex
2294bcf158 Not sure if this was brought back intentionally; probably not 2016-09-16 14:13:55 +02:00
Twinaphex
6fd5d35600 Merge pull request #3602 from GregorR/netplay-pause-poll
Tell Netplay when the frontend is paused
2016-09-16 13:59:17 +02:00
Gregor Richards
f2058620d3 Tell Netplay when the frontend is paused
The runloop now informs Netplay if it's paused. This currently happens
by polling the pause state every frame, which is ugly, but might be the
only feasible technique.
2016-09-16 07:40:24 -04:00
twinaphex
a55feae619 CXX_BUILD fixes 2016-09-16 13:38:06 +02:00
Twinaphex
e4cf93cff4 Merge pull request #3600 from GregorR/netplay-new-features
New Netplay features
2016-09-16 13:35:12 +02:00
twinaphex
cb17c0f493 Style nits 2016-09-16 13:31:18 +02:00
Twinaphex
ee0cbd4012 Merge pull request #3592 from nguillaumin/dbus-auto
Fixes #2026: Make DBus dependency 'auto' to enable it by default
2016-09-16 13:28:09 +02:00
Twinaphex
ed4e9d5a3c Merge pull request #3601 from hadess/master
X11 screensaver cleanups
2016-09-16 13:27:49 +02:00
Bastien Nocera
5afdd35e54 x11: Only call out to xdg-screensaver when D-Bus failed 2016-09-16 13:03:48 +02:00
Bastien Nocera
a061b4a801 x11: Implement xdg-screensaver uninhibition 2016-09-16 13:03:37 +02:00
twinaphex
9726de615b Fix stray icon 2016-09-16 13:03:26 +02:00
Bastien Nocera
e563bd5512 x11: Flatten D-Bus (un)inhibit functions
Instead of nesting, try to exit as soon as possible in case of errors.
Also make sure to tell the caller whether the call succeeded and a
fallback should be attempted.
2016-09-16 12:59:16 +02:00
twinaphex
574d51d1e0 Cleanups 2016-09-16 12:49:26 +02:00
twinaphex
7060f09948 remove header include 2016-09-16 12:46:34 +02:00
twinaphex
17e78909d5 Cleanups 2016-09-16 12:43:19 +02:00
Bastien Nocera
297c9a8613 x11: Reset dbus_connection global variable on exit
To ensure that the state of the variable is correct. This won't be
needed if X11 is never reinitialised.
2016-09-16 12:34:15 +02:00
Bastien Nocera
6ab7fab326 x11: Lower the severity of D-Bus not being accessible
As there is a fallback through xdg-screensaver, no need to make this any
more important than a log message.
2016-09-16 12:32:22 +02:00
Bastien Nocera
65fa874c3a x11: Rename function fetching the D-Bus connection
You'd expect a "get" function to return the variable in question. This
doesn't, and simply sets a global variable.
2016-09-16 12:32:15 +02:00
radius
247de41ce1 (ems) itch.io, readd log window 2016-09-15 23:19:23 -05:00
Gregor Richards
ad336df709 Reimplemented Netplay spectate mode
Spectate mode is now far more similar to net (normal) mode, and, more
importantly, it works. In addition, spectate mode will not fast-forward
to catch up with the server if it lags too far behind.
2016-09-15 23:06:32 -04:00
Gregor Richards
a42be48638 Don't do Netplay CRCing by default
There are too many buggy cores for Netplay to CRC in the default
configuration, so check_frames=0 by default. check_frames is a "last
resort" option anyway, so shouldn't need to be on by default.
2016-09-15 23:06:32 -04:00
Gregor Richards
4076b14568 Make Netplay flipping deterministic
The receiving side of a player-flip request now does a forced rewind to
assure that any already-computed frames are computed with the players on
the right side.
2016-09-15 23:06:32 -04:00
Gregor Richards
827009d2d3 A few corrections/clarifications in the Netplay README 2016-09-15 23:06:32 -04:00
Gregor Richards
2a0202ccf5 Making Netplay check frequency configurable. 2016-09-15 23:06:32 -04:00
Gregor Richards
9a91570db8 Adding new network commands to the Netplay README. 2016-09-15 23:06:32 -04:00
Gregor Richards
7271d1c3fa Support for frame CRCing
Every frame (soon to be configurable), the server does a CRC-32 hash and
sends it to the client. If the client finds that its own hash is
different from the server's, it requests a fresh savestate.

This is a last-ditch effort to sync if all else fails, and it's a
best-effort situation. The size of the buffer should assure that we
always still have the frame around to CRC, but I imagine there are edge
cases where we don't. If you're in an edge case, the CRC is ignored.
2016-09-15 23:06:32 -04:00
Gregor Richards
79eba578ff Remote state load bugfix: Don't skip an input frame 2016-09-15 23:06:32 -04:00
Gregor Richards
5f90f072ba Documentation fixup
Fixing up some of the function documentation, and documenting the packet
formats.
2016-09-15 23:06:32 -04:00
Gregor Richards
27188e102d Support for savestate loading over netplay
Assuming the core supports saving/loading states, and (crucially)
assuming the states are portable across the architectures on both sides
of the connection, Netplay now supports the transmission of savestates.
Right now the frontend doesn't actually send any such requests, as it's
not clear exactly where the code for that should be.

This works in either direction, although I'll admit I have no idea what
happens if they both load at the same time.
2016-09-15 23:06:32 -04:00
Gregor Richards
4d11b1d674 Don't misinterpret "Netplay isn't loaded" as "must pause" :) 2016-09-15 23:06:32 -04:00
Gregor Richards
c3186c57ab Don't stall if connection lost with remote paused 2016-09-15 23:06:32 -04:00
Gregor Richards
96186438ec Remote pausing
Support for remote pausing, and with it, support for Netplay pausing the
frontend correctly. With this patch alone this doesn't work, since
there's no clean way for the frontend to tell Netplay that it's paused.
2016-09-15 23:06:32 -04:00
radius
90a13632ac (ems) itch.io, fix core selector 2016-09-15 21:21:17 -05:00
twinaphex
f101e1bb8e Update glsm 2016-09-16 03:18:56 +02:00
twinaphex
54b65b689e Potential buildfixes for GLES2 2016-09-16 03:06:44 +02:00
fr500
f0b0c13d78 (ems) disable dropbox integration on itch.io for now 2016-09-15 19:01:05 -05:00
fr500
035259b959 (ems) disable dropbox integration on itch.io for now 2016-09-15 18:56:21 -05:00
fr500
0427ede025 (ems) update urls for itch 2016-09-15 18:56:21 -05:00
fr500
28a334318a (ems) itch.io template refinement 2016-09-15 18:33:12 -05:00
twinaphex
8de734b702 Header include cleanups 2016-09-16 01:27:59 +02:00
twinaphex
e19699bac4 Cleanups 2016-09-16 01:25:04 +02:00
twinaphex
8b2b406a85 menu_content.c - add HAVE_CONFIG_H ifdef 2016-09-16 01:23:25 +02:00
twinaphex
d6e4ce5118 menu_input.c - cleanup 2016-09-16 01:22:34 +02:00
fr500
f4e35e3cdf (ems) reorganize templates 2016-09-15 18:18:26 -05:00
fr500
20999f9952 (ems) remove deprecated template 2016-09-15 18:18:26 -05:00
fr500
2952952169 (ems) add itch.io template 2016-09-15 18:18:26 -05:00
twinaphex
fb133a7487 Update GLSM 2016-09-16 01:14:35 +02:00