mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-24 00:56:42 +00:00
SDL uses software decoding so it should only be considered when no hardware accelerated options are available
This commit is contained in:
@@ -31,10 +31,6 @@ typedef bool(*ImxInit)();
|
|||||||
|
|
||||||
enum platform platform_check(char* name) {
|
enum platform platform_check(char* name) {
|
||||||
bool std = strcmp(name, "default") == 0;
|
bool std = strcmp(name, "default") == 0;
|
||||||
#ifdef HAVE_SDL
|
|
||||||
if (std || strcmp(name, "sdl") == 0)
|
|
||||||
return SDL;
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_IMX
|
#ifdef HAVE_IMX
|
||||||
if (std || strcmp(name, "imx") == 0) {
|
if (std || strcmp(name, "imx") == 0) {
|
||||||
void *handle = dlopen("libmoonlight-imx.so", RTLD_NOW | RTLD_GLOBAL);
|
void *handle = dlopen("libmoonlight-imx.so", RTLD_NOW | RTLD_GLOBAL);
|
||||||
@@ -52,6 +48,10 @@ enum platform platform_check(char* name) {
|
|||||||
return PI;
|
return PI;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_SDL
|
||||||
|
if (std || strcmp(name, "sdl") == 0)
|
||||||
|
return SDL;
|
||||||
|
#endif
|
||||||
#ifdef HAVE_FAKE
|
#ifdef HAVE_FAKE
|
||||||
if (std || strcmp(name, "fake") == 0)
|
if (std || strcmp(name, "fake") == 0)
|
||||||
return FAKE;
|
return FAKE;
|
||||||
|
|||||||
Reference in New Issue
Block a user