mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-26 22:10:53 +00:00
added error msg if no access to /dev/amvideo
This commit is contained in:
1 parent
7c5c5a0528
commit
dc528dc1d0
1 file changed
+3
@@ -58,6 +58,9 @@ enum platform platform_check(char* name) {
|
|||||||
if (handle == NULL){
|
if (handle == NULL){
|
||||||
fprintf(stderr, "Error loading libmoonlight-aml.so \n");
|
fprintf(stderr, "Error loading libmoonlight-aml.so \n");
|
||||||
}
|
}
|
||||||
|
if (access("/dev/amvideo", F_OK) == -1){
|
||||||
|
fprintf(stderr, "Error: no access to /dev/amvideo \n");
|
||||||
|
}
|
||||||
if (handle != NULL && access("/dev/amvideo", F_OK) != -1)
|
if (handle != NULL && access("/dev/amvideo", F_OK) != -1)
|
||||||
return AML;
|
return AML;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user