[Bug 274026] games/moonlight-embedded update to 2.6.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 23 Sep 2023 04:46:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274026

--- Comment #4 from Armin Zhu <lisp_25689@163.com> ---
(In reply to Robert Clausecker from comment #1)
Excited to hear from you, this is my first time submitting my own code. 
I added patch files to make it easier for future contributors to identify
changes that need to be made specifically for the FreeBSD system.
I have not paid attention to the issue information of the moonlight-embedded in
the upstream, these patchs are all to solve the problems I have encountered
when using it myself.It is not committed upstream at the moment.
1. The relevant code for REINPLACE_CMD in MAKEFLE has been put into patch
files. 
2. Explanation of PATCHS:
          * patch-libgamestream_client.c : This is the patch of the previous
contributor, not modified.
          *patch-libgamestream_http.c :  This is to fix the issue of slow host
response times. 
                                                                           
Before modifying, the app attempts to restore the previous connection, and
after a few minutes of attempts, 
                                                                           
returns an error and reinitiates a new connection. The simplest attempt was
made to fix this issue.
          *patch-src_platform.c : Here are some of the same that previous
contributors commit.The modifications I made were for 2 things. 
                                                           1 for re-enable x11*
platform.
                                                               The upstream
code forces the sdl platform and disables the x11 platform, which is strange, I
reverted this and tried it out without issue.
                                                           2 for add oss sound
support.
                                                               FreeBSD natively
only supports OSS sounds, so I added this and made it the sound playback method
for the x11* platform by default.
           *patch-src_input_evdev.c : Here are some of the same that previous
contributors commit.The modifications I made were for 3 things.
                                                           1 for More strictly
limit the way the keyboard is judged.Because acpi button such as shutown/sleep
will also be recognized as 
                                                               a keyboard by
libevdev.And when libevdev tries grab the device, the keyboard becomes
unresponsive.
                                                           2 for use sdl to
drive gamepad.
                                                               When I tried to
drive the gamepad with libevdev, the gamepad did not respond, but with the SDL
platform to drive the gamepad 
                                                               that some
gamepads were available, so I changed to use the SDL drive gamepad by default,
but someone can also use the libevdev.
                                                           3 for add
grab/ungrab keyboard shortcut for x11* platform.This is purely for the
convenience of using other FreeBSD apps when streaming.
          *patch-src_main.c : The modifications I made were for 3 things.
                                                           1 for add -nosdl
option for switching sdl and libevdev  to drive gamepad when use x11* platform.
                                                           2 for fix the issue
of fixed PIN code generated by the openssl random() function.use rand() and
srand() instead.
                                                           3 for comment out
the related code for HDR support.Because FreeBSD does not have HDR support now.

-- 
You are receiving this mail because:
You are the assignee for the bug.