summaryrefslogtreecommitdiff
path: root/games/moonlight-embedded/files/patch-src_main.c
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-04-29 19:41:50 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2019-04-29 19:41:50 +0000
commit09beb93a9a46982cb7f496ca9550bf1edfc76eb6 (patch)
tree25a1f7fb0117add87d2bcbb6e22e57209eeb489e /games/moonlight-embedded/files/patch-src_main.c
parentNew port: math/hmat-oss: Hierarchical matrix C/C++ library (diff)
games/moonlight-embedded: Update to 2.4.8
Changes: https://github.com/irtimmer/moonlight-embedded/releases/tag/v2.4.8
Notes
Notes: svn path=/head/; revision=500426
Diffstat (limited to 'games/moonlight-embedded/files/patch-src_main.c')
-rw-r--r--games/moonlight-embedded/files/patch-src_main.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/games/moonlight-embedded/files/patch-src_main.c b/games/moonlight-embedded/files/patch-src_main.c
index 7f9da0fedbef..d7343992a11f 100644
--- a/games/moonlight-embedded/files/patch-src_main.c
+++ b/games/moonlight-embedded/files/patch-src_main.c
@@ -1,4 +1,4 @@
---- src/main.c.orig 2018-08-11 15:43:13 UTC
+--- src/main.c.orig 2019-04-29 17:09:45 UTC
+++ src/main.c
@@ -91,7 +91,6 @@ static void stream(PSERVER_DATA server, PCONFIGURATION
}
@@ -8,7 +8,13 @@
#ifdef HAVE_SDL
gamepads += sdl_gamepads;
#endif
-@@ -124,13 +123,8 @@ static void stream(PSERVER_DATA server, PCONFIGURATION
+@@ -121,19 +120,11 @@ static void stream(PSERVER_DATA server, PCONFIGURATION
+ connection_debug = true;
+ }
+
+- if (IS_EMBEDDED(system))
+- loop_init();
+-
platform_start(system);
LiStartConnection(&server->serverInfo, &config->stream, &connection_callbacks, platform_get_video(system), platform_get_audio(system, config->audio_device), NULL, drFlags, config->audio_device, 0);
@@ -23,15 +29,15 @@
sdl_loop();
#endif
-@@ -172,7 +166,6 @@ static void help() {
+@@ -182,7 +173,6 @@ static void help() {
printf("\t-surround\t\tStream 5.1 surround sound (requires GFE 2.7)\n");
printf("\t-keydir <directory>\tLoad encryption keys from directory\n");
printf("\t-mapping <file>\t\tUse <file> as gamepad mappings configuration file\n");
- printf("\t-platform <system>\tSpecify system used for audio, video and input: pi/imx/aml/rk/x11/x11_vdpau/sdl/fake (default auto)\n");
printf("\t-unsupported\t\tTry streaming if GFE version or options are unsupported\n");
+ printf("\t-quitappafter\t\tSend quit app request to remote after quitting session\n");
#if defined(HAVE_SDL) || defined(HAVE_X11)
- printf("\n WM options (SDL and X11 only)\n\n");
-@@ -210,8 +203,6 @@ int main(int argc, char* argv[]) {
+@@ -221,8 +211,6 @@ int main(int argc, char* argv[]) {
exit(-1);
}
@@ -40,7 +46,7 @@
exit(0);
}
-@@ -222,12 +213,8 @@ int main(int argc, char* argv[]) {
+@@ -233,12 +221,8 @@ int main(int argc, char* argv[]) {
exit(-1);
}
config.address[0] = 0;
@@ -55,7 +61,7 @@
}
char host_config_file[128];
-@@ -277,38 +264,8 @@ int main(int argc, char* argv[]) {
+@@ -288,39 +272,8 @@ int main(int argc, char* argv[]) {
}
config.stream.supportsHevc = config.codec != CODEC_H264 && (config.codec == CODEC_HEVC || platform_supports_hevc(system));
@@ -85,6 +91,7 @@
-
- udev_init(!inputAdded, mappings, config.debug_level > 0);
- evdev_init();
+- rumble_handler = evdev_rumble;
- #ifdef HAVE_LIBCEC
- cec_init();
- #endif /* HAVE_LIBCEC */